msbuild

MSBuild RecursiveDir is empty

倾然丶 夕夏残阳落幕 提交于 2019-12-13 06:58:37
问题 I'm trying to make a custom MSBuild script to build all solutions in our repository: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SourceHome Condition=" '$(SourceHome)'=='' ">..\</SourceHome> <ToolsHome Condition=" '$(ToolsHome)'=='' ">.\Tools\</ToolsHome> <Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration> <DestFolder Condition=" '$(DestFolder)'=='' ">.\$(Configuration)\</DestFolder> </PropertyGroup> <ItemGroup> <AllSolutions

Include files in MSBuild that are not part of project

谁说我不能喝 提交于 2019-12-13 06:27:28
问题 I'm trying to create an automated build for my web application project. We use a standard CMS project and have tweaked some parts of it. Only the tweaked files are part of our project, but I want to include the full CMS in the deployment package. So I've created a custom .targets file to define a task to include the CMS files during the build: <Target Name="GetCMSFiles"> <ItemGroup> <!-- Include the CMS files into the package --> <_CMSFiles Include="..\packages\CMSFiles\**\*" />

msbuild not copying referenced assembly

拥有回忆 提交于 2019-12-13 06:10:05
问题 I have a solution that contains two projects: - projectA has a nuget reference to ServiceStack ormlite - projectB has a reference to projectA When I build the solution the outdir for projectA contains all the assembly coming from nuget packages (4 assemblies), whereas the projectB only copies 2 of them. Obviously when I start it I get an FileNotFoundException . I have already tried with no success to add private=true flag I have seen many references to this problem and it gets very confused

Command line MSBuild fails to compile code

六月ゝ 毕业季﹏ 提交于 2019-12-13 06:07:50
问题 Can anyone tell me why command-line msbuild fails to build this code? public SourceControlHandler(string sourceControlUser = null, string sourceControlPassword = null, string sourceControlDomain = null) { var client = new SvnClient(); if (!string.IsNullOrEmpty(SourceControlUser) && !string.IsNullOrEmpty(SourceControlPassword)) { client.Authentication.Clear(); client.Authenticatio​n.UserNameHandlers += delegate (object sender, Sv​nUserNameEventArgs e) { e.UserName = SourceControlUser; };

Getting MSBuild error MSB3202 when running a build with TeamCity

蹲街弑〆低调 提交于 2019-12-13 05:41:30
问题 I was given the task to research and implement CI for our small .Net shop. After doing our research, we selected TeamCity to our automated builds. Installing TeamCity and MSBuild was pretty straight forward but the issue is when I started the build. I would always get an error. From the looks of things, it's trying to call the Shared Library project so the first thing I did was edit the VCS to include the Shared Library but that did not resolve the issue. Please review the log from the build

MonoTouch: custom msbuild task error

人盡茶涼 提交于 2019-12-13 05:39:10
问题 I'm trying to creating a custom task to generate an intermediate .csproj file (see this post for the reason.) The custom task is in a dll that presently references the .net 2.0 assemblies. The experimental msbuild/xbuild setting of MonoDevelop is enabled to force MonoDevelop to use xbuild to build the project. I am able to run this from the command line, via a project that references the task via a <UsingTask> element: ~/src/All/workspace/XBuildExt/bin/Debug> mono /Library/Frameworks/Mono

How can I retrieve major/minor/build/revision number on build events

南笙酒味 提交于 2019-12-13 04:58:21
问题 Hy there! I'm using this piece of code, to copy some files on post-build-event: <PropertyGroup> <DemoPath1>..\demoPath1</DemoPath1> </PropertyGroup> <Target Name="AfterBuild"> <Exec Command="robocopy $(ProjectDir)$(DemoPath1) $(ProjectDir)demoPath2/$(Revision) * /XD .svn _svn /XF *.cs /S" IgnoreExitCode="true" /> </Target> As you can see, I would like to use $(Revision) - obviously, this is not going to work ... Can anybody help me out? @mods: I dunno exactly which tag to use ... on the one

AppVeyor build error MSB3774: Could not find SDK “Microsoft.AdMediator.Universal”

倾然丶 夕夏残阳落幕 提交于 2019-12-13 04:45:30
问题 I am getting this MsBuild error when trying to build my Universal Windows Platform (UWP) application with AppVeyor: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2048,5): error MSB3774: Could not find SDK "Microsoft.AdMediator.Universal, Version=1.0". [C:\projects\santasegameengine\Source\UI\Santase.UI.WindowsUniversal\Santase.UI.WindowsUniversal.csproj] C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2048,5): error MSB3774:

How to create Azure Cloud Service package from MsBuild in azure pipeline

人盡茶涼 提交于 2019-12-13 04:44:28
问题 I have some cloud service projects , which i am trying to get it into CI/CD. When i right click on the project from Visual Studio and click Package it does what i want. I can see the ServiceConfiguration.cscfg and ServiceDefinition.csdef in the bin\Release folder after the package command is completed. How can i achieve the same from an MSBuild command line ? I have tried msbuild.exe /p:DeployTarget=Package /p:DeployOnBuild=true /p:AutomatedBuild=True /p:configuration=release /p:outdir="D:

How to read a MSBuild property in a given project in runtime?

不羁岁月 提交于 2019-12-13 04:38:55
问题 I want to access a MSBuild variable inside an unit test, which is a .NET 4.5 class library project (classic csproj), but I failed to find any articles discussing a way to pass values from MSBuild into the execution context. I thought about setting an environment variable during compilation and then reading that environment variable during execution, but that seems to require a custom task to set the environment variable value and I was a bit worried about the scope of the variable (ideally, I