msbuild

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

半腔热情 提交于 2020-01-01 09:33:31
问题 I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

二次信任 提交于 2020-01-01 09:33:15
问题 I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0

Configuration for ProjectReference in MSBuild

泪湿孤枕 提交于 2020-01-01 09:12:22
问题 Is it possible to set the configuration of ProjectReference in MSBuild? Scenario: I have a build script (web deploy) that has a number of configurations where the only difference has to do with how they are deployed and not the build it self. I would hate to have to maintain configurations for my solution/projects that are build as a part of the deploy process just because I need those configurations for deployment. Any way I can accomplish this? 回答1: Another possible method of setting

Configuration for ProjectReference in MSBuild

a 夏天 提交于 2020-01-01 09:12:11
问题 Is it possible to set the configuration of ProjectReference in MSBuild? Scenario: I have a build script (web deploy) that has a number of configurations where the only difference has to do with how they are deployed and not the build it self. I would hate to have to maintain configurations for my solution/projects that are build as a part of the deploy process just because I need those configurations for deployment. Any way I can accomplish this? 回答1: Another possible method of setting

Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

雨燕双飞 提交于 2020-01-01 08:57:29
问题 After updating to VS 2015 Update 1 (including Typescript 1.7) and the Azure SDK 2.8, I am unable to package my Azure application for deployment because of an error in the path the packager is trying to copy the js output file to: Error Unable to copy file "D:\X\XX\XXX\App\services\editor\ruler-manager.js" to "D:\X\XX\XXX\obj\Debug\PE.Web\D:\X\XX\XXX\App\services\editor\ruler-manager.js". The given path's format is not supported. PE.Architecture C:\Program Files (x86)\MSBuild\Microsoft

Stop MSBuild processing immediately on compilation errors

半城伤御伤魂 提交于 2020-01-01 08:57:26
问题 I have written a batch file, which when executed builds a visual studio solution. The solution comprises of few C# projects. I am using MSBuild utility for this. How can i stop the build from proceeding further when there are compilation errors in any of the projects? Further how can i get the error messages and display them on command prompt? 回答1: There's no support for stop on first failure when building a visual studio solution. You can workaround this by taking the following steps: Set

Custom common target to build a solution

让人想犯罪 __ 提交于 2020-01-01 08:36:52
问题 I created a custom common target "RealClean" which remove every files in the output and "intermediate output" directory. I put it in the Microsoft.Common.targets file. When I run MsBuild on my csproj everything is fine. But when I run MsBuild on my sln (which just references a list of csproj) I have the following error error MSB4057: The target "RealClean" does not exist in the project. Here is the command line I enter to run MsBuild C:\Windows\Microsoft .NET\Framework\v3.5\MsBuild.exe /p

Find MSBuildProjectDirectory Parent Directory

与世无争的帅哥 提交于 2020-01-01 08:34:25
问题 MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far, I've been using the following property to find out the project root folder: <RootFolder>$(MSBuildProjectDirectory)\..\</RootFolder> Everything was working great, until I tried using a copy task that relied on this path. It is not resolving correctly. I basically end up getting something like this which is not valid: C:\Projects\MyProject\Trunk\Build\..

How do I cause an error in MSBuild if a file exists?

萝らか妹 提交于 2020-01-01 07:28:09
问题 We have a process that runs prior to our nightly builds. If the process fails it generates a text file. All I need to do is check to see if the file exists, and if it does, cause a failing MSBuild. I currently have tried the following: <CreateProperty Condition="Exists('C:\Process\Fail.txt')" Value="false"> <Output TaskParameter="Value" PropertyName="ProcessTestPassed"/> </CreateProperty> <Message Text="Process did not pass" Condition="Exists('C:\Process\Fail.txt')" ContinueOnError="false" />

`visual studio 2017 add as link content files (aspnetcore)

时光毁灭记忆、已成空白 提交于 2020-01-01 06:46:29
问题 Since VS2017 returned to csproj, I am again able to add files "as link"... NOT! When I link a file I also want it to be copied to the solution folder (not output directory, just solution), for example js files, webpack config files etc, I have them shared and "linked". But in order for these to be really "seen" by visual studio, I have to copy them to the solutions. I do this in a BeforeTargets="Build" event in the csProj file. That is how I did it before the project.json change (during the