msbuild

Solution level build events in VS 2008

不羁岁月 提交于 2019-12-18 07:00:35
问题 I know you can have pre and post build events at a project level, but I want to stop and start a service at the beginning and end of a build of the solution -- i.e. when I do a 'Build Solution' the service is stopped and the last action of the build is to re-start the service. There are no build events on the solution property page, so what should I do? I'm guessing that I can add tasks to the msbuild file but I'm afraid I don't understand the relationship between VS and msbuild at all. Does

Kicking off a WSL bash-based build from Visual Studio 2015

巧了我就是萌 提交于 2019-12-18 06:18:11
问题 I recently started using the Windows Subsystem for Linux (WSL) to see if my Linux Makefile & arm-none-eabi-gcc based microcontroller project would build "natively" in Windows. To my surprise, the tool chain and Linux based development tools installed and worked perfectly on first go, without any modifications to the Makefile. So that got me thinking to try doing all my code editing in Visual Studio using the IDE features while doing the actual build in the Linux & bash environment provided in

Kicking off a WSL bash-based build from Visual Studio 2015

六眼飞鱼酱① 提交于 2019-12-18 06:17:59
问题 I recently started using the Windows Subsystem for Linux (WSL) to see if my Linux Makefile & arm-none-eabi-gcc based microcontroller project would build "natively" in Windows. To my surprise, the tool chain and Linux based development tools installed and worked perfectly on first go, without any modifications to the Makefile. So that got me thinking to try doing all my code editing in Visual Studio using the IDE features while doing the actual build in the Linux & bash environment provided in

TFS 2010 creating .Net 4.0 XmlSerializers DLL for .Net 3.5 Application

强颜欢笑 提交于 2019-12-18 06:13:55
问题 We have a ASP.Net web application running in Visual Studio 2010 that is targeting .Net 3.5. It's being built by TFS 2010. This web application has a couple web references, so the build creates a related XmlSerializers DLL. This DLL, however, is a .Net 4.0 assembly. When I run this web application from the build, I get the error: Could not load file or assembly 'BLAH_BLAH_WEB_APPLICATION_NAME.XmlSerializers' or one of its dependencies. This assembly is built by a runtime newer than the

How do I get Team Build to show test results and coverage for xUnit.net test suite?

旧时模样 提交于 2019-12-18 04:55:23
问题 Has anybody had any success getting Team Build to show xUnit.net test results and code coverage in the build report? The MSBuild runner is running the tests just fine and the results are in the log file, but the test results and code coverage results areas of the build report say "No test result" and "No coverage result" respectively. Is Team Build looking for a certain location / format for the test results to be exported by the xUnit.net runner? 回答1: TFS/TeamBuild definitely requires the

How can I pass a parameter through MSBuild to the compiler?

删除回忆录丶 提交于 2019-12-18 04:50:42
问题 I'm using the line below to have MSBuild build a Delphi 2010 groupproj: MSBuild C:\src\myprojgroup.groupproj /target:Build /p:config=Release I can't figure out how to modify the line above so that I can pass this argument -EC:\mypath to the compiler (bcc32.exe). I've spent a fair amount of time trying to find this on the web. /property:name=value seemed likely to be what I need, but hasn't thus far. Is this even possible, or do I have to learn about MSBUILD configuration files now... 回答1:

How to debug a project file in MSBuild 14.0 / VS2015?

﹥>﹥吖頭↗ 提交于 2019-12-18 04:48:10
问题 How to debug a project file in MSBuild 12.0 / VS2013? has an answer, but apparently that method is not supported in Visual Studio 2015/MSBuild 14. Does anyone know a way to perform MSBuild debugging in Visual Studio 2015/MSBuild 14? Bonus points for scoop about Visual Studio 2017. 回答1: The MSBuild debugger was never officially supported and was cut from MSBuild in favor of cross-platform support in the VS 2015/MSBuild 14 timeframe. There are many ways to debug the behavior of a build. The

Is it necessary for the build machine to have Microsoft Office 2007 installed?

旧时模样 提交于 2019-12-18 04:46:11
问题 Our app added functionality to allow users to import certain information from an excel spreadsheet (all users will have Office 2007 already). The development machine has Office 2007 and the developer added a reference to Microsoft.Office.Interop.Excel - all was good. However, the build machine does not have Office 2007 installed. When the build is run on the build machine, we get the following build error: "The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are

MSBuild: Specifying a target from the command line

旧时模样 提交于 2019-12-18 04:32:25
问题 I have an MSBuild task to build a specific project in a solution file. It looks something like this: <Target Name="Baz"> <MSBuild Projects="Foo.sln" Targets="bar:$(BuildCmd)" /> </Target> From the command line, I can set my BuildCmd to either Rebuild or Clean and it works as expected: msbuild /target:Baz /property:BuildCmd=Rebuild MyMsbuildFile.xml msbuild /target:Baz /property:BuildCmd=Clean MyMsbuildFile.xml But what word do I use to set BuildCmd to in order to just build? I've tried Build

MSBuild: Specifying a target from the command line

回眸只為那壹抹淺笑 提交于 2019-12-18 04:31:42
问题 I have an MSBuild task to build a specific project in a solution file. It looks something like this: <Target Name="Baz"> <MSBuild Projects="Foo.sln" Targets="bar:$(BuildCmd)" /> </Target> From the command line, I can set my BuildCmd to either Rebuild or Clean and it works as expected: msbuild /target:Baz /property:BuildCmd=Rebuild MyMsbuildFile.xml msbuild /target:Baz /property:BuildCmd=Clean MyMsbuildFile.xml But what word do I use to set BuildCmd to in order to just build? I've tried Build