msbuild

Get list of files from tfs changeset

↘锁芯ラ 提交于 2019-12-20 04:16:59
问题 I need to get a list of changed files from chageset only and exclude all other junk. I can get this information from the command tf changeset /i $(changesetnumber) but besides of List of files i have a lot of other information which I dont need for my purposes. Or maybe someone can tell how to get this list of files from ccnet so I can send it to my msbuild.proj file via property. 回答1: You could use the TFS API to get the information you want. Here's some example C# code that will select the

Can MSBuild be used to build a C++ project under ARM?

拟墨画扇 提交于 2019-12-20 04:16:06
问题 I'm testing the feasibility of using MSBuild to perform an ARM build of an existing C++ project for Windows Phone and Windows Store. On Windows 7 with VS2012, I opened a Visual Studio 2012 ARM Developer Command Prompt. Then I tried it to see what would happen: C:\cryptopp>msbuild /t:Build /p:Configuration=Debug;Platform=ARM cryptlib.vcxproj Microsoft (R) Build Engine version 4.6.1055.0 Build started 10/6/2016 1:11:47 PM. The target "Midl" listed in a BeforeTargets attribute at "C:\Program

MSBuild failed to create .xap when building cordova-wp8 for debugging

夙愿已清 提交于 2019-12-20 03:52:34
问题 I'm building a cordova application and trying to run "cordova build wp8" in the cmd prompt, but this seems to be erroring out: Your environment has been set up for using Node.js 0.10.25 (x64) and npm. C:\path\to\project>cordova build wp8 Generating config.xml from defaults for platform "wp8" Preparing wp8 project Compiling app on platform "wp8" via command "cmd" /c C:\path\to\project\platforms\wp8\cordova\build Error: An error occurred while building the wp8 project.ERROR: MSBuild failed to

Team Build 2010 - Third Party Assembly References not copying to output folder

无人久伴 提交于 2019-12-20 03:21:43
问题 When I build a solution on my build server it generates a binaries folder and then later on copies these binaries to the final output folder. In my case some of the third party assemblies REFERENCES are correctly copied over while other 3rd part assemblies REFERENCES are not copied over. Take not that my solution projects do not directly reference the assemblies being copied over. This means that everything build fine. But when I run my program it doesn't start since the assemblies it's

MSBuild 15 WebApplication.targets is missing

守給你的承諾、 提交于 2019-12-20 03:16:14
问题 I am working with a web application that was written using VS2015, and is being maintained using VS2017. I am trying to write another application to build the full web stack locally using the MSBuild API and other tools. In VS2015 or VS2017 the ASP.NET Web Application project will build successfully, but when running MSBuild programmatically, I keep getting this error: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication

MSBuild task - Build fails because one solution being built in release instead of debug

放肆的年华 提交于 2019-12-20 03:03:21
问题 I'm hitting a weird issue with MSBuild, and I'm thinking it might just be an environment issue. We're using MSBuild to build a number of separate solutions, and it seems to work on my machine. But on a couple of other machines, it's not working. I've tracked down the issue, and it looks like one of the solutions (or one of the projects in that solution) is being built in "Release" when everything else is being built in "Debug". This causes some of the references to be missing - so the

NUnit failed to load in TFS build

荒凉一梦 提交于 2019-12-20 02:56:20
问题 I’m having a "build partially succeeded" issue with this error “NUnit failed to load e:\Builds\184\CSTax\706USServices_Test\bin\Calc.Tests.dll”, but all of the unit test in this project ran and passed (all green). Build environment 1) Using NUnit 2.6.4 and NUnit Test Adapter 2.0.0 2) TFS 2013 – upgraded from 2012 3) Visual studio 2012 and 2013 have been installed on the server 4) I did install the NUnit Test Adapter, using the Extensions and Updates in 2013 Visual Studio 5) Using build

Read Config Value in MSBuild Task

廉价感情. 提交于 2019-12-20 02:44:26
问题 Is there a way to read a System.Config connection string in an MSBuild task? Basically I have my connection string setup in a config file <add name="MyApp.MyConnectionString" connectionString="..." /> And I would like to reference it in an MSBuild task like so ... <Target Name="Migrate" DependsOnTargets="Build"> ... <Migrate Connectionstring="$(MyApp.MyConnectionString)" ... /> </Target> 回答1: There's an XMLRead task in the MSBuild Community Tasks Project, that uses xpath to pull out a value.

Failing Build because it can't find AL.exe

十年热恋 提交于 2019-12-20 02:34:17
问题 Here's an interesting problem that really has me scratching my head. I have a project that's being built in TeamCity. It's been working fine until a developer added a resource file to one of the projects with some strings for another locale. He's added the .resx file under the Properties folder next to the default one. Here's the error message from the build log: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2105, 9): error MSB3091: Task failed because "AL.exe" was not

Usage of wrong compiler during SQL Server Database Project building

点点圈 提交于 2019-12-20 02:32:20
问题 I have an issue with compilation of SSDT SQL Server Database Project by using Visual Studio 2015. I want to use C# 6 features inside my database project, but it seems like it is unsupported. For example, I have added the next class in my db project: namespace Database1 { class ClassFile1 { public string Str { get; } = string.Empty; } } I have tried to compile this, but I got the error: CS1519: Invalid token '=' in class, struct, or interface member declaration I have found out that the reason