msbuild

MSBuild add file to primary output

雨燕双飞 提交于 2020-01-03 18:51:50
问题 How can i add some custom file created by MSBuild to project output? i.e. I have blank .csproj, I add Exec task to Target that generates some file.txt and now i want to include this file into "primary output" or "content files". Thanks, Marek 回答1: Generally, you just need to include the output files you have and then copy them to the output directory. <CreateItem Include="$(SourcePath)\file.txt"> <Output ItemName="FilesToCopy" TaskParameter="Include" /> </CreateItem> <Copy SourceFiles="@

XmlMassUpdate - Replace Value Node

强颜欢笑 提交于 2020-01-03 15:34:44
问题 I'm trying to use XmlMassUpdate to update my config files based on build Version type. There seems to be no documentation on how to update the new app.config (vs2008) settings formats anywhere. This is the config section: <applicationSettings> <CTC.Mica.ClientService.Properties.Settings> <setting name="PipeName" serializeAs="String"> <value>\\.\pipe\micaPipe</value> </setting> <setting name="CTC_Mica_ClientService_MicaWebService_MicaWebService" serializeAs="String"> <value>URL</value> <

Does Visual Studio use MSBuild internally, and what is the exact command? [duplicate]

那年仲夏 提交于 2020-01-03 15:16:08
问题 This question already has answers here : What parameters does Visual Studio pass to MSBuild? (2 answers) Closed 5 years ago . Does Visual Studio (specifically VS2013) use msbuild internally to build projects? And if so, is there a way for me to determine the exact command and arguments it uses? (And by this I mean the MSBuild command , not the individual commands that MSBuild would be calling) My goal is to successfully build a certain projects (it is a xamarin project) using msbuild, so that

Jenkins + Python + MSBuild = No ANSI Colors

感情迁移 提交于 2020-01-03 13:03:02
问题 Short: How can I get colors for MSBuild running from Jenkins. Long: I have a nice Python build script that uses the pyColors module to print pretty output to console. When I'm running the script from CMD, I get colors from my script and colors from MSBuild (Ex: Blue color for "Done Building Project", Green for "Build succeeded", Red for errors). I also run the same script from Jenkins (on Windows, of course). At the begging I got no colors in the Jenkins log (Console output). I then,

Jenkins + Python + MSBuild = No ANSI Colors

♀尐吖头ヾ 提交于 2020-01-03 13:02:02
问题 Short: How can I get colors for MSBuild running from Jenkins. Long: I have a nice Python build script that uses the pyColors module to print pretty output to console. When I'm running the script from CMD, I get colors from my script and colors from MSBuild (Ex: Blue color for "Done Building Project", Green for "Build succeeded", Red for errors). I also run the same script from Jenkins (on Windows, of course). At the begging I got no colors in the Jenkins log (Console output). I then,

MSBuild doesn't find async required references

冷暖自知 提交于 2020-01-03 12:21:28
问题 We have Visual Studio 2010 SP1 and Async CTP (SP1 refresh) installed. A solution with projects that use async/await keywords builds OK when build from VS IDE. Also when built with devenv /build "Debug" solution.sln everything is OK. However msbuild @commands.rsp solution.sln reports: File.xaml.cs(123): error CS1993: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly? commands.rsp looks like this: /nologo

MSBuild doesn't find async required references

二次信任 提交于 2020-01-03 12:21:27
问题 We have Visual Studio 2010 SP1 and Async CTP (SP1 refresh) installed. A solution with projects that use async/await keywords builds OK when build from VS IDE. Also when built with devenv /build "Debug" solution.sln everything is OK. However msbuild @commands.rsp solution.sln reports: File.xaml.cs(123): error CS1993: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly? commands.rsp looks like this: /nologo

Can vstest.console.exe run an appx without a security certificate

梦想与她 提交于 2020-01-03 10:58:47
问题 I'm trying to set up automated builds on my build agent using MSBuild on the command line. The two projects I'm focussed on at the moment are a UWP and it's associated unit test project. To build, I have to use this: /p:AppxPackageSigningEnabled=false Else, I get this error: error APPX0101: A signing key is required in order to package this project. Please specify a PackageCertificateKeyFile or PackageCertificateThumbprint value in the project file. However, this does not generate a .cer

Setting web.config properties during build (not through publishing)

时光总嘲笑我的痴心妄想 提交于 2020-01-03 10:47:12
问题 I'm trying to deploy an app using a Web Setup Project. The problem I'm running into is that the web.config file is never transformed. According to this post it's by design that transformation only takes place during a publish. How do I get the web.config properties to update correctly if building the Setup Project in turn calls the other assemblies build command? 回答1: I fixed it by adding a dummy web.Template.config file like Andriy K suggested in this post, and then calling TransformXml

Is there a way to turn off the quiet mode in DCC32 called by MSBuild?

落花浮王杯 提交于 2020-01-03 09:47:10
问题 By default, the DCC32 compiler is called with the -Q switch that turns the quiet mode on. Is there a way to disable this switch in the .dproj file or by a command line parameter? I use msbuild for the build automation in my Delphi project. Unfortunately I can't find any reference to the DCC32 parameters when it is executed by MSBuild. Usually I first change a compiler parameter in the Delphi IDE and then check what was changed in the project file. However, this approach won't work for the