msbuild

Clean repository for every configuration when running multiple configurations in one build definition

跟風遠走 提交于 2019-12-13 04:34:21
问题 I am trying to run multiple configurations under one build definition on TFS using Visual Studio 2013. Is it possible to specify that i want a clean repository before building each configuration? Thank you 回答1: Yes it is. When you are in the build configuration settings (right-click on the build and select 'edit build definition') you should see the option "Clean Repository" with a "False". Change this to "True". 来源: https://stackoverflow.com/questions/26607725/clean-repository-for-every

How to update assembly assembly references in a web site?

寵の児 提交于 2019-12-13 04:29:48
问题 I'm making a build using FinalBuilder Pro 7. I have an asp.net web site and I'm trying to use FinalBuilder's "Precompile Asp.net 2.0 Application" action. Well, It fails. To build it successfully I need to run Visual Studio, open the web site and either build it manually from within VS or manually update all references. After that it works. Now the question: How to force FinalBuilder to update those references? Even if I create web deployment project associated with the web site and try to

Visual Studio 2017 during build exited with code 9009 : error code MSB3073

浪子不回头ぞ 提交于 2019-12-13 04:26:20
问题 I am trying to build the visual studio code and I get the following build error. I searched for answers regarding the same topic. I already tried adding nuget.exe to Path variable. But nothing seems to work. This is my error in the error list MSB3073 The command "nuget.exe push -Source Application_Internal -ApiKey VSTS C:Users\Documents\LOCAL_NUGET_FEED\App.Util.*.*0.0.0*.nupkg" exited with code 9009 The corresponding line from csconfig file is <Exec Command="NuGet.exe push -Source

MSBuild: Output properties from imported projects

﹥>﹥吖頭↗ 提交于 2019-12-13 04:25:55
问题 Let's say I have a build.proj like this: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="AfterBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)Common.Build.targets</CustomAfterMicrosoftCSharpTargets> <Configuration>Release</Configuration> <Platform>Any CPU</Platform> <ProjectProperties> Configuration=$(Configuration); Platform=$(Platform);

TFS build does not copy Cordova project output

蹲街弑〆低调 提交于 2019-12-13 04:25:51
问题 I am working on a Cordova project developed with Visual Studio Tools for Apache Cordova CTP 3.1 in Visual Studio 2013 Update 4. I have created a TFS build definition (I'm using TFS 2013) for the project that is able to build the project. I get the correct output, but this output is not copied to the specified dropped location or anywhere else. I have tried a lot of things and nothing worked. I believe it must be related to the fact that the .jsproj does not define and OutputType or an

How can I merge two ItemGroups in MSBuild

倖福魔咒の 提交于 2019-12-13 04:12:59
问题 I have two ItemGroups: <ItemGroup> <Compile Include="A.cs" /> <Compile Include="B.cs" /> <Compile Include="C.cs" /> </ItemGroup> <ItemGroup> <PEG Include="A.cs" /> <PEG Include="Y.cs" /> <PEG Include="Z.cs" /> </ItemGroup> I need to do add each of the items in PEG to Compile IF AND ONLY IF that item is not AREADY in Compile . Is there an easy way to do that? My first attempt is something like: <ItemGroup> <Compile Include="%(PEG.Identity)" Condition=" '$(Compile)' != '%(PEG.Identity)' " /> <

How can we deploy from TFS to IIS on shared hosting? (GoDaddy)

好久不见. 提交于 2019-12-13 04:12:23
问题 The documentation found here describes how to deploy to IIS, but the WinRM component requires local admin permissions. Obviously, this isn't going to be available on shared hosting with service providers such as GoDaddy. (We'll be excluding Azure targets for the purposes of this discussion.) Visual Studio can do this very easily, simply by using an imported .publishsettings file. Doesn't it stand to reason that TFS should be able to do the same thing without needing the extra privileges? ..

.targets file within nuget package - how to include content files into a build

别说谁变了你拦得住时间么 提交于 2019-12-13 04:09:15
问题 I have a nuget package like: /build/SharedTargets.targets /content/File.cs SharedTargets.targets looks like: <Compile Include="$(MSBuildThisFileDirectory)\..\content\File.cs"> <Link>File.cs</Link> <Visible>True</Visible> </Compile> Is there a way how to reference the content files in more elegant way ? I.E. how to construct relative path to content properly. 回答1: That's basically how to do it. I'd suggest not putting .cs files in the content subfolder since they might end up in the project

nunit-console can not loacte fixture

牧云@^-^@ 提交于 2019-12-13 03:42:22
问题 I have 2.5.8 and VS2010 I want to run tests against a dll and if I type nunit-console a.dll I also have these suites public class AllTests { [Suite] public static IEnumerable Suite { get { List<Type> suite = new List<Type>(); foreach (Type testCase in UnitTests.Suite) { suite.Add(testCase); } return suite; } } } and public class UnitTests { [Suite] public static IEnumerable Suite { get { List<Type> suite = new List<Type>(); suite.Add(typeof(LicenceManagerTests)); suite.Add(typeof

Does Visual Studio support adding MSBuild tasks to projects?

前提是你 提交于 2019-12-13 03:39:43
问题 I'm trying to add some simple MSBuild tasks to a Visual Studio project (VS 2012 Express) - specifically, to create a subdirectory then copy some files to a subdirectory of the output directory ready for packaging. I see that VS supports custom build steps, which are command-line invocations. However, since VS is based on MSBuild it should be possible to add these directly as MSBuild tasks like the Copy Task in the AfterBuild pre-defined target. What I can't find is any way to actually add