Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

problem when using MSBuild ExtensionPack Zip Task

$
0
0

i am trying to use Zip task in MSBuild extension package  , i am using win 7 x64 and MSBuild Installation is 4.0 x64
here is my .proj file content 

<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemGroup><FilesToZip Include="C:\temp\*.*"></FilesToZip></ItemGroup>

<Target Name="PackageStuff"><MSBuild.ExtensionPack.Compression.Zip TaskAction="Create" CompressFiles="@(FilesToZip)" ZipFileName="C:\newZipByFile.zip"/></Target><Import Project="C:\Program Files\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/></Project>

when i tried to run PacakgeStuff Target i have this error 


c:\Temp\Hello.proj(9,5): error MSB4062: The "MSBuild.ExtensionPack.Compression.
Zip" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\
ExtensionPack\4.0\MSBuild.ExtensionPack.dll. Could not load file or assembly 'f
ile:///C:\Program Files (x86)\MSBuild\ExtensionPack\4.0\MSBuild.ExtensionPack.d
ll' or one of its dependencies. The system cannot find the file specified. Conf
irm that the <UsingTask> declaration is correct, that the assembly and all its
dependencies are available, and that the task contains a public class that impl
ements Microsoft.Build.Framework.ITask.

Thanks 



Build C++ COM components from VS2008

$
0
0

Hi,

I migrated mine c++ project from vs2008 to vs 2010.when i building in vs2010 i am getting below error. Under custom build setup i define as 

if not "%OS%"=="Windows_NT" goto NOTNT
regsvr32 /s /c "C:\D_Drive\Components\PMC_HdxBhr_Alarm\.\ReleaseUMinDependency\Alarm.dll"
echo regsvr32 exec. time > ".\ReleaseUMinDependency\regsvr32.trg"
goto end
:NOTNT
echo Warning : Cannot register Unicode DLL on Windows 95
:end

below is the build error

Error89 error MSB3073: The command "if "%OS%"="" goto NOTNT
if not "%OS%"=="Windows_NT" goto NOTNT
regsvr32 /s /c "C:\D_Drive\Components\PMC_HdxBhr_Alarm\.\ReleaseUMinDependency\Alarm.dll"
echo regsvr32 exec. time > ".\ReleaseUMinDependency\regsvr32.trg"
goto end
:NOTNT
echo Warning : Cannot register Unicode DLL on Windows 95
:end

:VCEnd" exited with code 255.C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets1836 PMC_HdxBhr_Alarm

Same is working in Vs2008

CopyPipelineFiles - Illegal characters in path

$
0
0

Hello,

I have migrated a project from VS 2008 to VS 2010 (target framework 2.0) and I tried to publish it (to a File System).

I ran into the following error :

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.5\Web\Microsoft.Web.Publishing.targets(2963,5): Error MSB4018: The "CopyPipelineFiles" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.Combine(String path1, String path2)
   at Microsoft.Web.Publishing.Tasks.CopyPipelineFiles.CopyPipelineFilesToFolder(TaskLoggingHelper log, ITaskItem[] allpipeLineItems, String sourceFolderName, String targetFolderName, ItemMetadataFilter itemMetadataSkipFilter, Boolean fUpdateItemSpec, Boolean deleteItemsMarkAsExcludeTrue, List`1 updatedPipeLineItems, List`1 failedPipeLineItems)
   at Microsoft.Web.Publishing.Tasks.CopyPipelineFiles.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
        Done executing task "CopyPipelineFiles" -- FAILED.
        Done building target "CopyAllFilesToSingleFolderForPackage" in project "XXX.csproj" -- FAILED.
Done building project "XXX.csproj" -- FAILED.

I can compile the project just fine. About specificities in the project I have multiple files that added to the project as a link so I don't know if it's that causing the issue.

I tried to do a failed "Combine" with all the files in my solution to see what is the offending file (since the error message do not tell) but I couldn't reproduce the error.

Thanks and regards,
Eric Gaspard



Where is Visual studio 2012 Setup project template?

$
0
0

We did lot of window form destop and window service deployments, but these projects are removed in visual studio 2012.  How should we do this now? and what is the purpose of removing these templates?

I've been using install shield in the past, they are license nightmare. I just don't want to go back there again.

Windows Phone 7.1 x64 Emulator won't install

$
0
0

Hello,

I'am having a lot of trouble getting this emulator to install on my desktop. I have MS Visual C++ Express installed with SP1 but every time I try to install the Windows 7.1 SDK I keep getting this error: Windows 7.1 x64 Emulator won't install...

I checked the error logged and saw that the setup failed and MSI returned the error code 1603.

I looked the code up but all the issues and resolutions don't apply to my system. 

Any help would be greatly appreciated. Thanks. 

Output path property not set for project

$
0
0

I have been searching the problem of this errormessage I get on deployment for some time now.

I have a NopCommerce solution which does consist of  52 Projects.

To deploy I execute a batch file which knocks off a cascading deploymentprocedure.
It all works fine on a servermachine where I set up the project at first. But now I need to get the deployment working on our workstations and altho I made an exact copy of the project, the deployment batch pops out an error. I have been searching the web now for 2 days and got several solutions where from all different kind of errorsource and none worked so far.

       "C:\Daten\Sourcen\NopCommerce_2.80 - Kopie\Presentation\Nop.Web\Nop.Web.
       csproj" (ResolveReferences;_CopyWebApplication Ziel) (25:13) ->
       (_CheckForInvalidConfigurationAndPlatform Ziel) ->
         c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(609,5): error : The OutputPath property is not set for project 'Nop.Web.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Release'  Platform='Mixed Platforms'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Daten\Sourcen\NopCommerce_2.80 - Kopie\Presentation\Nop.Web\Nop.Web.csproj]

the project build batch where I guess the error happens is somewhere here

<!--Lets publish Nop.Web-->
        <MSBuild Projects="$(RootFolder)\Presentation\Nop.Web\Nop.Web.csproj"
           Targets="ResolveReferences;_CopyWebApplication"
           Properties="WebProjectOutputDir=$(DeployFolder)\$(DeployPrefix)\;
           OutDir=$(DeployFolder)\$(DeployPrefix)\bin\;Configuration=$(Configuration)" />
        

        <!--Lets copy the plugins to the deployed directory-->
        <MSBuild Projects ="$(MSBuildProjectFullPath)"
                        Targets="Plugins-CopyToWeb"
                        Properties="
                        PluginOutput=$(DeployFolder)\$(DeployPrefix)\Plugins\"/>

Maybe there is something lacking the mainsolution file. We added projects and so forth

but I tried to change the solutions-pattern like the serverproject where deployment works
and it still does not work.

The solution file is very large so I copy only the mentioned nop.web parts:

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nop.Web", "Presentation\Nop.Web\Nop.Web.csproj", "{4F1F649C-1020-45BE-A487-F416D9297FF3}"
EndProject

{4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|x64.ActiveCfg = Debug|x64
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|x64.Build.0 = Debug|x64
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|x86.ActiveCfg = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Debug|x86.Build.0 = Debug|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|Any CPU.Build.0 = Release|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|x64.ActiveCfg = Release|x64
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|x64.Build.0 = Release|x64
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|x86.ActiveCfg = Release|Any CPU
        {4F1F649C-1020-45BE-A487-F416D9297FF3}.Release|x86.Build.0 = Release|Any CPU

Any help appreciated!

Thanks in advance.

Sonia

Double loop in the Target

$
0
0
<PropertyGroup><NewBuild>..\Deployment\bin\$(Configuration)</NewBuild><CurrentDateTime>$([System.DateTime]::Now.ToString("yyyyMMdd_hh_mm_ss"))</CurrentDateTime><CommonFileSharePrefix>\\appdata\</CommonFileSharePrefix><CommonFileShareSufix>Deployment\$(ProjectName)</CommonFileShareSufix></PropertyGroup><!-- Copy the new deployment package to all environment. Before that copy Current folder to the [CurrentDateTimeTime] folder to save an old version. --><Target Name="AfteInstaller" AfterTargets="Installer"><CreateItem  Condition="Exists('$(CommonFileSharePrefix)QA1$(CommonFileShareSufix)\Current')" Include="$(CommonFileSharePrefix)QA1$(CommonFileShareSufix)\Current\**\*.*"><Output TaskParameter="Include" ItemName="CurrentFilesToCopyQA1" /></CreateItem><CreateItem Condition="Exists('$(CommonFileSharePrefix)ST1$(CommonFileShareSufix)\Current')" Include="$(CommonFileSharePrefix)ST1$(CommonFileShareSufix)\Current\**\*.*"><Output TaskParameter="Include" ItemName="CurrentFilesToCopyST1" /></CreateItem><CreateItem Condition="Exists('$(CommonFileSharePrefix)PR1$(CommonFileShareSufix)\Current')" Include="$(CommonFileSharePrefix)PR1$(CommonFileShareSufix)\Current\**\*.*"><Output TaskParameter="Include" ItemName="CurrentFilesToCopyPR1" /></CreateItem><Copy Condition="Exists('$(CommonFileSharePrefix)QA1$(CommonFileShareSufix)\Current')" SourceFiles="@(CurrentFilesToCopyQA1)"
         DestinationFiles="@(CurrentFilesToCopyQA1->'$(CommonFileSharePrefix)QA1$(CommonFileShareSufix)\$(CurrentDateTime)\%(RecursiveDir)%(Filename)%(Extension)')" /><Copy Condition="Exists('$(CommonFileSharePrefix)ST1$(CommonFileShareSufix)\Current')" SourceFiles="@(CurrentFilesToCopyST1)"
         DestinationFiles="@(CurrentFilesToCopyST1->'$(CommonFileSharePrefix)ST1$(CommonFileShareSufix)\$(CurrentDateTime)\%(RecursiveDir)%(Filename)%(Extension)')" /><Copy Condition="Exists('$(CommonFileSharePrefix)PR1$(CommonFileShareSufix)\Current')" SourceFiles="@(CurrentFilesToCopyPR1)"
         DestinationFiles="@(CurrentFilesToCopyPR1->'$(CommonFileSharePrefix)PR1$(CommonFileShareSufix)\$(CurrentDateTime)\%(RecursiveDir)%(Filename)%(Extension)')" /></Target>

My goal is to copy folders and files into several environments. 

My code is above. Of course, I don't like the repetitive parts, which is differentiated only by the the environment names (QA1, ST1, PD1). But there is also a loop on the CurrentFilesToCopyxxx item and this is a stopper for me.

How to move this environment name as a parameter for this Target? I'm a novice in MSBuild, so this question is simple for sure. :)


Leonid Ganeline [BizTalk MVP] BizTalk: the Naming Conventions in Examples


MSBuild - BuildInParallel (Build Process Template)

$
0
0

How torewritethe script for parallel execution?

<ForEach Values="[BuildSettings.PlatformConfigurations]" x:TypeArguments="mtbwa:PlatformConfiguration" DisplayName="For Each Configuration in BuildSettings.PlatformConfigurations" ... ><ActivityAction x:TypeArguments="mtbwa:PlatformConfiguration"><ActivityAction.Argument><DelegateInArgument x:TypeArguments="mtbwa:PlatformConfiguration" Name="platformConfiguration" /></ActivityAction.Argument><Sequence DisplayName="Clean Configuration" sap2010:WorkflowViewState.IdRef="Sequence_8"><If Condition="[BuildSettings.HasProjectsToBuild]" DisplayName="If BuildSettings.HasProjectsToBuild" sap2010:WorkflowViewState.IdRef="If_8" mtbwt:BuildTrackingParticipant.Importance="Low"><If.Then><ForEach x:TypeArguments="x:String" DisplayName="For Each Project in BuildSettings.ProjectsToBuild" ... Values="[BuildSettings.ProjectsToBuild]"><ActivityAction x:TypeArguments="x:String"><ActivityAction.Argument><DelegateInArgument x:TypeArguments="x:String" Name="serverBuildProjectItem" /></ActivityAction.Argument><Sequence DisplayName="Clean Project" sap2010:WorkflowViewState.IdRef="Sequence_7" mtbwt:BuildTrackingParticipant.Importance="Low"><Sequence.Variables><Variable x:TypeArguments="x:String" Name="localBuildProjectItem" /></Sequence.Variables><mtbwa:ConvertWorkspaceItem DisplayName="Convert Server Paths to Local Paths" sap2010:WorkflowViewState.IdRef="ConvertWorkspaceItem_1" mtbwt:BuildTrackingParticipant.Importance="Low" Input="[serverBuildProjectItem]" Result="[localBuildProjectItem]" Workspace="[Workspace]" /><If Condition="[System.IO.File.Exists(localBuildProjectItem)]" DisplayName="If File.Exists(Project)" ...><If.Then><mtbwa:MSBuild 
						CommandLineArguments="[String.Format(&quot;/p:SkipInvalidConfigurations=true {0}&quot;, MSBuildArguments)]" 
						Configuration="[platformConfiguration.Configuration]" 
						Platform="[platformConfiguration.Platform]" 
						Project="[localBuildProjectItem]" 
						ToolPlatform="[MSBuildPlatform]"
						OutDir="[BinariesDirectory]" 
						DisplayName="Run MSBuild for Project" 
						GenerateVSPropsFile="[True]" 
						...
						/></If.Then></If></Sequence></ActivityAction></ForEach></If.Then></If></Sequence></ActivityAction></ForEach>

Thanks.


How to make VS2012 stop generating devenv-cps.log?

$
0
0

(I initially asked this in General Questions, but this might be a more appropriate forum)

In order to debug some issues in the build process of my VS2012 project, I followed the steps outlined here

http://blogs.msdn.com/b/andrewarnottms/archive/2012/06/07/enable-c-and-javascript-project-system-tracing.aspx

i.e. I added the suggested CPS config settings to devenv.exe.config file, asking for Verbose output. As expected, this made VS2012 to generate devenv-cps.log in c:\temp folder. Before making changes todevenv.exe.config, I saved a backup copy of the original file.

Once I figured out everything I wanted to figure out, I decided to revert devenv.exe.config to its original state by overwriting it from the aforementioned backup copy. However, to my great surprise, this did not restore the original behavior of VS2012. The compiler still creates devenv-cps.log file in c:\temp folder every time I start VS2012 and updates it with verbose output every time I build my project. Why? How do I stop it now?

I feel like I'm missing something very basic. Apparently, the CPS settings from devenv.exe.config became sticky somehow, e.g. they were saved somewhere else. So, how do I disable CPS debugging now and revert to the original behavior of VS2012?




Why is the use of hard links disabled when building inside Visual Studio?

$
0
0

The MSBuild Copy command has the ability to use hard links instead of actually copying files, and it is controlled by the "UseHardlinksIfPossible" attribute. Moreover, the "Microsoft.Common.targets" file is aware of that feature, and supports using hard links instead of copying when building C# projects (e.g. copying references to the output folder, or copying build products from the intermediate folder to the output folder).

However, this entire functionality is disabled when building from within Visual Studio itself, and is only available when building using MSBuild directly via command line. This is clear by the code following these comments in Microsoft.Common.targets: "By default we're not using Hard Links to copy to the output directory, and never when building in VS".

What isn't clear to me is the reason behind this limitation. Is there a potential problem with hard links when building inside Visual Studio (that doesn't exist when building via MSBuild)? Is there any way for me to work around this and get this feature in Visual Studio without editing the Microsoft.Common.targets file (which seems like a bad idea)?

MSBuild F# project with AssemblyInfo.fs file. Error during CoreCompile with fsc.exe

$
0
0

Hello all,

I have problem with building my solution by MSBuild.

In my solution I have the F# projects to which I have added the AssemblyInfo.fs files, such file looks as follows:

namespace namespaceName

open System.Reflection
open System.Runtime.CompilerServices
open System.Runtime.InteropServices

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[<assembly: AssemblyTitle("assemblyName")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("assemblyName")>]
[<assembly: AssemblyCopyright("Copyright ©  2013")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[<assembly: ComVisible(false)>]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[<assembly: Guid("9b60cdeb-57b8-4e08-b713-1be614a449cd")>]
// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the ‘*’ as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]
()

When I compile my solution in Visual Studio 2012 I do not have any problems. All assemblies are build with a nice information about version.

The problem is with the TFS Builds (I have the TFS 2012). The build of my solution always fails. The error origins in the CoreCompile fsc.exe step and it is about the AssemblyInfo.fs file:

Project "D:\path\projectMaster.csproj" (40) is building "D:\path\projectName.fsproj" (41) on node 1 (default targets).
PrepareForBuild:
  Creating directory "obj\Release\".
  Creating directory "bin\Release\".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
  C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\fsc.exe -o:obj\Release\projectName.dll --debug:pdbonly --noframework --define:TRACE --doc:bin\Release\projectName.XML --optimize+ -r:D:\path\r1.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\FSharp.Core.dll" -r:D:\path\r2.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors --highentropyva- "C:\Users\userName\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" folder1\file1.fs folder1\file2.fs folder2\file1.fs 
D:\path\projectName\AssemblyInfo.fs(37,10): error FS0010: Unexpected symbol ':' in expression. Expected ']' or other token. [D:\path\projectName\projectName.fsproj]
D:\path\projectName\AssemblyInfo.fs(37,1): error FS0598: Unmatched '[' [D:\path\projectName\projectName.fsproj]
D:\path\projectName\AssemblyInfo.fs(40,1): error FS0010: Incomplete structured construct at or before this point in implementation file [D:\path\projectName\projectName.fsproj]
Done Building Project "D:\path\projectName\projectName.fsproj" (default targets) -- FAILED.

I have no idea why the fsc.exe in MSBuild have problem with my AssemblyInfo.fs files.

What is more strange, when I use the "Developer Command Prompt for VS2012" and I execute exactly the same MSBuild or fsc.exe commands everything goes fine. I do not have any errors. So it seems that the TFS Build have some strange problems which I am not able to reproduce on my machines even if I run the same commands.

Thank you for any help!

Circular File References are not allowed!

$
0
0

This one is really starting to BUG ME!

I have a fairly large website written in both classic ASP and ASP.Net with
VB.Net being the main language. We use Visual Studio 2010 for the IDE.

Usually, the website compiles without much trouble, but every once it a while
VS2010 decides on its own that there is a circular file reference (where there
wasn't one the last time it compiled!) and refuses to compile the site.

SOMETIMES we can clear this up by telling VS2010 to REBUILD the whole
website.
SOMETIMES we can clear this up by deleting all of the IIS temporary
files.

However, right now I can't get VS2010 to compile the site no matter what I
do.  I've re-booted my machine several times (to great consternation, the number
of circular file references seems to change with every reboot!).

Of course, this never happens on the simple one or two page demo
websites..Yell


Anyone have any ideas of what I can try.  I'm pretty sure there is no
circular file reference (in the current case, it's just an ascx page that
includes another ascx page on it).  I wish VS2010 would tell me the FREAKIN'
PATH that it THINKS has the circular file reference!!!!

SHEESH.

Wait!  

AAAAAAAARRRRRRGGGGHHH!

TWO MORE RECOMPILES and the STUPID Circular File Reference errors WENT AWAY! 
No, I did not change ANY CODE or anything else. Just hit the BUILD SOLUTION menu
item two or three more times!

WHAT THE FREAK?!?!?!?!

Oh, now when I try to debug the solution, the circular file references are back!

Ok, so "Build/Rebuild Solution" followed immediately by "Build/Build Solution" gets rid of the circular file references! (But NOT EVERY TIME, only works 1 out of 3 or 4 times).

But then hit F5 to debug, and they are back.

So, "Build/Rebuid Solution" followed immediately by F5 to debug and -- Nope, always gets circular file references.

Very frustrating.

TIA,
Owen

Semi-Urgent (due to frustration) Deployment Project - Does not overwrite files

$
0
0

So,

Quite simply, I have a whole slew of VisualStudio templates (and wizards) that need to be installed for them to work within Visual Studio.

After design everything and testing everything, I created an Install Project (deployment project, whatever).  It worked.

Now, I have made some changes to the wizards/templates and such and needed to rebuild the solution (including the deployment project) so that, run new installer, and voila, you are using the new template and the new wizards.

Install Folder is the PrivateAssemblies folder as in: [Program Files]\Microsoft\[VS Dir]\COmmon7\ProjectAssemblies
(I know those [] values are not exact, but who cares at this point as that part works fine, not caring to much given my EXTREME frustration. (expletives out the wazoo for the last hour))

So, I part of my Deployment project is a folder "CSharpItems", which contains the updated vstemplate and cs files in ZIP format (as they are supposed to be for templates) all of them dated today, with the approriate 1.1.25.25 version for the wizard dll references.
DefaultLocation is set to: [ITEMTEMPLATEPATH]\Visual C#\JR's Code
Property is set to: ITEMTEMPLATESFOLDER

[ITEMTEMPLATEPATH] is populated by a Launch Condition that searches the registry for the User Template Path.

I created a "TextBox(A)" dialog, and set the "property" to ITEMTEMPLATESFOLDER to test this value, and found that it points to the correct location on my hard drive.

I run the install.  And the files in the ITEMTEMPLATESFOLDER location are still dated last year, and the vstemplate wizard dll versions are still 1.1.7.7

i looked everywhere for the newer vesions, and finally found them in the "Application Folder" location. So i deleted those and tried again, and all subsequent installs have not installed those ZIP files.

Finally, I deleted the old "JR's Code" folder from the Item Templates folder on my hard drive, uninstalled the "installer" and voila the next install, worked right.  How do I tell the deployment project that ALL files MUST be overwritten with the file in the package. No comparison, no "idiot brained thinking" just delete and overwrite EVERYTHING?

Additionally, I decided to change the "Title" of the installer, and guess what? the Name in the "Programs and Features" for uninstallation of the package still read "GI.TemplateInstaller.V1" WTF?  How do I change the name that appears in the Programs and Features screen?

Thanks

Jaeden "Sifo Dyas" al'Raec Ruiner



"Never Trust a computer. Your brain is smarter than any micro-chip."
PS - Don't mark answers on other people's questions. There are such things as Vacations and Holidays which may reduce timely activity, and until the person asking the question can test your answer, it is not correct just because you think it is. Marking it correct for them often stops other people from even reading the question and possibly providing the real "correct" answer.

ASPNETCOMPILER : error ASPRUNTIME: The current identity (domain\user) does not have write access to C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

$
0
0

I am getting the follow error when I try to compile using MSbuild Command. I don't understand, because the user who is executing MSBUILD command line has administrator privillege at this server. 

ASPNETCOMPILER : error ASPRUNTIME: The current identity (domain\user) does not have write access to C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.

please help me.

Starting and Stoping Windows Service using Batch File - Delay or Timeout before starting serivce again - windows 7

$
0
0

SC STOP WindowsServiceName

TIMEOUT /T 5 /NOBREAK

SC START WindowsServiceName

SC, TIMEOUT is command line tool

You need to execute batch file as ADMIN.

You can start stop windows service in Post Build Event.

TIMEOUT did not work for me in Visual Studio Build Post Event.

Please let me know if you have any question.

Thanks

Imran


EME


'Combo' search in database

$
0
0

Hello

I've made a database of movies, each movie has his own score and genre... 

I have a problem with searching in the database. I've made a query for searching in the database but when I select for example 'Adventure' as genre and I select 7 as score, he reset the genre so I get all the movies with a score greater than 7.

I wan't a query or a command that I can select 'Adventure' and give 7 as score so the program give all the adventure movies with a score greater than 7

Greatzz

EXEC: Initialization of the Windows Script Host failed. (Not enough storage is available to process this command. )

$
0
0

Hi Team
I am getting one issue while making build from TFS , the job is to use a VB Script file in reading ISM file and creates merged modules. Whiil executing the job from TFS Build, I am getting this issue

Here is the Stack , I see in the TFS, Please help in this regard

Note: I am a able to execute this job succesfully from Command Prompt

Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation

Thanks,

Srinivas

)


how to compile certain .c files into one .obj file?

$
0
0

Greetings,

I have some .c files that are linking each other using the : extern (type) (function) syntax, when I compile, I get error

of unresolved external, so I'd like to compile those .c files into one obj file without using precompiled header(because

I need to compile specific files and not the whole files together), so what's the best solution for that?

thank you very much for helping.

ERROR MSB6006

$
0
0

1>The input line is too long. (TaskId:14)
1>The syntax of the command is incorrect. (TaskId:14)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 255.

Whats the solution or reason for this ERROR.

MS Build API - Parallel Builds

$
0
0

Greetings,

I have a collection of about 150 projects that, via their dependencies, form a Directed acyclic graph. As such, all nodes of this graph at the same dependency level can be built in parallel (as they have no dependencies on each other). I am using the latest MS Build API but cannot seem to get the builds to use all of my cores / processors. The basic strategy I am using to build a set of independent projects is as follows:

public class ParallelProjectBuilder
    {
        public static void BeginBuild(string[] projects, System.Threading.CancellationToken cancellationToken)
        {   
            Microsoft.Build.Execution.BuildParameters lBuildParameters = new Microsoft.Build.Execution.BuildParameters();
            lBuildParameters.MaxNodeCount = System.Environment.ProcessorCount;
            lBuildParameters.BuildThreadPriority = System.Threading.ThreadPriority.Highest;
            lBuildParameters.MemoryUseLimit = 4000;

            Microsoft.Build.Execution.BuildManager lBuildManager = new Microsoft.Build.Execution.BuildManager();

            cancellationToken.Register(() => lBuildManager.CancelAllSubmissions());

            TaskScheduler.UnobservedTaskException += new EventHandler<UnobservedTaskExceptionEventArgs>(TaskScheduler_UnobservedTaskException);
            lBuildManager.BeginBuild(lBuildParameters);

            List<Microsoft.Build.Execution.BuildSubmission> lSubmissions = new List<Microsoft.Build.Execution.BuildSubmission>();

            foreach (string project in projects)
            {
                Microsoft.Build.Execution.BuildRequestData lBuildRequestData = new Microsoft.Build.Execution.BuildRequestData(new Microsoft.Build.Execution.ProjectInstance(project), new string[] { "Build" });
                Microsoft.Build.Execution.BuildSubmission lSubmission = lBuildManager.PendBuildRequest(lBuildRequestData);
                lSubmissions.Add(lSubmission);
                lSubmission.ExecuteAsync(new Microsoft.Build.Execution.BuildSubmissionCompleteCallback((aSubmission) => { }), null);
            }

            foreach (Microsoft.Build.Execution.BuildSubmission lSubmission in lSubmissions)
            {
                lSubmission.WaitHandle.WaitOne();
            }
        }

        private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
        {
            System.Diagnostics.Trace.WriteLine(e.Exception);
            e.SetObserved();
        }       
    }

When I execute this code on an 8 core machine, i have, at most, 2 or 3 cores running at about 20% utilization. A typical set of independent projects consists of about 30 to 40 projects, so I expect all of my cores to be utilized. Can anyone shed some light on what I may be doing wrong?

Viewing all 2763 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>