msbuild

Why are a visual studio project's command-line settings stored per user? Is it OK to check-in (and share) a .user setting file?

亡梦爱人 提交于 2019-12-21 06:49:28
问题 We're creating an application that understands some command-line parameters. There are some default's we would like to supply on the command-line when debugging, and these are easily set in the project settings as explained here. The thing is visual studio stores these settings in a *.csproj. user file, and the default settings for integrated source control do not check-in *. user files. We would like to just have these default command-line parameters in everyone's IDE when debugging this

aspnet_compiler and msbuild.exe

拜拜、爱过 提交于 2019-12-21 06:03:42
问题 I am pretty new to msbuild and aspnet_compiler. I am using aspnet_compiler to compile web application project. Now I just saw the MSBuild.exe and noticed that its builds my website into the /mywebsite/precompiledWeb folder. Now why do I need to use MSBuild.exe? Can't I directly use the aspnet_compiler to see if my website can be built properly? (Not sure if I explained it very well). 回答1: msbuild.exe is usually used to build projects and its dependencies. When you have a web application

How do I add an MSBuild .proj file to my solution?

狂风中的少年 提交于 2019-12-21 05:41:22
问题 Does anyone know how to add a an MSBuild .proj file to my solution? I was just given existing code from a vendor with a solution that references an MSBuild .proj file as one of its projects. When I open the solution, the project shows as (unavailable). It appears that I need to install some sort of project template to get this project to open correctly. I installed the Codeplex MSBuild Template, but this doesn't appear to be it. Any ideas? 回答1: If you don't need IDE support, it's possible to

How to create MSBuild inline task from multiple source files

浪子不回头ぞ 提交于 2019-12-21 05:07:06
问题 I am having several CS files (one DLL project), all in one directory and one of the classes there extends ITask. Now, it is easy and documented how to create inline task from one source file, but is it possible to do this from multiple source files? I am not able to compile and use DLL as a task and I would prefer if I don't have to cram all sources into one big source file. I am targeting something like: <UsingTask TaskName="foo" TaskFactory="CodeTaskFactory" AssemblyFile="Microsoft.Build

Why is msbuild and link.exe “hanging” during a build?

人盡茶涼 提交于 2019-12-21 04:37:13
问题 We have a few C++ solutions and we run some build scripts using batch files that call msbuild.exe for each of the configurations in the solutions. This had been working fine on 3 developer machines and one build machine, but then one of the projects started to hang when linking. This only happens on the newest machine which is a quad core, 2.8ghz I think. It runs on Windows Server 2003 and the others are on XP or Vista. This happens consistently even if I change the order of builds in the bat

TFS Build Server cannot get publish profile to work: “Can't find the valid AspnetCompilerPath”

百般思念 提交于 2019-12-21 04:34:10
问题 I have a Solution with a bunch of Web Projects and i want my build server to automatically create packages for each project. I am able to to get (nearly) everything working. The builds are fine and the packages will be created on each build. But only when i do not specify a PublishProfile in the MSBuild Arguments. So it will only insert default values and not precompile my Web Sites and such. (Arguments are /p:DeployOnBuild=True /p:IsAutoBuild=True /p:VisualStudioVersion=12.0 ) However I want

The specified solution configuration “Latest|Any CPU” is invalid

一笑奈何 提交于 2019-12-21 04:33:13
问题 I am getting this error with my MSBuild script running in Jenkins C:\<path>\<solutionname>.sln.metaproj : error MSB4126: The specified solution configuration "Latest|Any CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. In my Jenkins configuration under Build->Command Line Arguments

How to create the inf file for a smart device cab project from command line?

青春壹個敷衍的年華 提交于 2019-12-21 04:30:21
问题 I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from within visual studio. Is there a way to create the inf using the .vddproj file so that I can then use it with cabwiz.exe? 回答1: Your best bet is either to run devenv.exe (or devenv.com) from the msbuild task, or to steal the INF that Visual Studio generates

Why does MSBuild put *.XmlSerializers.dll assembly in the root folder of published web application?

£可爱£侵袭症+ 提交于 2019-12-21 04:26:07
问题 I have a build process which takes my VS 2008 .NET 2.0 ASP.NET project and builds it using MSBuild. The project contains ASPX files, plus a web service, and also connects to another web service ;) All seems to work well except MSBuild puts the *.XmlSerializers.dll assembly file into the folder _PublishedWebsites\MySite rather than in _PublishedWebsites\MySite\bin like it does with the other dll. Does it matter that the *.XmlSerializers.dll assembly file is not in the bin folder? Or should I

WiX Heat: Pre-build event fires too early on build server

北战南征 提交于 2019-12-21 04:22:19
问题 I'm harvesting a directory for my Visual Studio solution. It works on my local system so far probably because the project build order is being respected. When I run the installer on a build server it finds the right directory but it has not been created at the time of building the setup file. It throws a HEAT5052 error saying The directory 'a:\b\c' could not be found . Is there any way to "wait" until or to execute the heat command after all project references are built? 回答1: OK so I've spent