msbuild

Is it possible to run the MSBUILD.SONARQUBE.RUNNER on a CSProj file as opposed to a solution?

梦想与她 提交于 2019-12-12 06:05:28
问题 I have a TFS xaml Build template that runs the msbuild.sonarqube.runner start (and end) before and (after the) msbuild task in the xaml. It all works well enough with a .sln file. As the file under build. However, when I attempt to use this on a build that runs msbuild on a .csproj file the end process reports that it cannot find the postprocess exe. "Execution failed. The specified executable does not exist: .sonarqube\bin\MSBuild.SonarQube.Internal.PostProcess.exe" there no error indication

How do I exclude the contents of a directory but not the directory itself in MSBuild

风流意气都作罢 提交于 2019-12-12 05:58:00
问题 I'm using a Web Deployment Project 2008 to build my web application. I'd like to exclude the contents of several folders from the build but keep the blank directory itself. However, if I do this <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\ImageCache\**\*.*" /> it will exclude the ImageCache directory itself. So how do I keep the directory? Thanks in advance? 回答1: I'm afraid you must do this in two lines : <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\ImageCache\**\*.*" />

VSTS build failing with error “Process 'msbuild.exe' exited with code '1'.”

孤街醉人 提交于 2019-12-12 05:48:51
问题 Getting that build failed error because I have 4 warnings that read the same. ##[warning]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Python Tools\Microsoft.PythonTools.Django.targets(120,5): Warning : Errors while resolving environments: Some project interpreters failed to load: Interpreter d:\a\1\s\"name of project"\env\ has invalid value for 'Id': env Interpreter reference has invalid path: Global|PythonCore|3.4 I am using Python 3.4.4 64-bit if that makes a difference. The

Override where a label is created by MSBuild in TFS 2008/2010

六眼飞鱼酱① 提交于 2019-12-12 05:46:40
问题 By default, when a queued build is running, MSBuild calls the CoreLabel task to label the source files that were included in the build - how do I control where this label is created? Basically, I would like the label to be created at the root of the Team Project (i.e. folder "Client" below), however it appears that the label is created at the root of the working folder for the workspaces (i.e. Project 1\Development\Sources): $ <-- Project Collection +- Client <-- Team Project +- Project 1 <--

How to assemble multiple .NET executables in a single application suite package with MSBuild?

时间秒杀一切 提交于 2019-12-12 05:32:25
问题 I have multiple solutions each having multiple projects. What I want to do is to assemble a subset of these projects from possibly different solutions into a single "package" and deploy it as such. I could edit each project and change it`s output folder but this would be counter productive, espacially that some of these projects are shared dependency amongst the different target packages. This would make a tedious mess and very error prone. Ideally also I would like some freedom as to how

Tfs post-build step running application hangs

六眼飞鱼酱① 提交于 2019-12-12 05:06:16
问题 We have a configured TFS CI which is making our build. After a build I`d like to have my simple executable application to be deployed to specific folder on the server and then started. I decided to do this with post-build step and batch script. Everything works perfectly except one: when the application is stared, build agent(the one who runs my script) hangs. Here is how I start my application from the script: start /b %depldir%\MyApp.exe [params] > log.txt So I start it in backgroound and

Create an ItemGroup of strings in MSBuild

孤者浪人 提交于 2019-12-12 04:44:54
问题 I want to create an "ItemGroup" of arbitrary strings / names in order to use MSBuild transforms, for example: <ItemGroup> <Categories>First</Categories> <Categories>Second</Categories> </ItemGroup> I then wish to pass a transform of these categories into a console app, e.g.: /c @(Categories, ' /c ') The reason why I say "ItemGroup" in quotes, is because I'm not sure whether or not it is applicable for me to use ItemGroups in this way - as far as I can see nothing in the documentation states

Visual Studio/msbuild: set “Content” output directory

烈酒焚心 提交于 2019-12-12 04:43:09
问题 I'm trying to achieve what markerikson was here: Visual Studio - sending "content" files to the output directory instead of a subdirectory? The problem is, the answers there (using xcopy) is a hack. If I add a reference to the project with the content (in my case, .dlls and other data), then the content still appears under a subfolder. How can I set Build Action -> Content and set a path for the files contained within? That propagates in such a way that if I add a reference to the containing

Conditional conditional symbol definition in a .csproj file

不问归期 提交于 2019-12-12 04:35:35
问题 I am an experienced C# developer, but a complete beginner when it comes to MSBuild, and now I have a .csproj file containing the following XML snippet: <Choose> <When Condition=" $(UseSimulatedResx) == true "> <PropertyGroup> <DefineConstants>$(DefineConstants);SIMRESX</DefineConstants> </PropertyGroup> ... does something else ... </When> </Choose> Is there way any anyone can explain me how and when the excerpt above should work? Where and when should I issue this UseSimulatedResx? What I

Error when running unit tests from MSBuild

柔情痞子 提交于 2019-12-12 04:28:31
问题 I have an MS Build script that runs on the build server and then runs unit tests (have runtests set to true). I am getting the following errors when calling MSTest. Some people suggested installing Visual Studio 2010 Test Edition and Team Explorer 2010. After doing that am still getting the same errors. Seems I need a specific version of MSTest to be able to publish to TFS. Any ideas? =========================================================== The "TestToolsTask" task is using "MSTest.exe"