msbuild

.NET 4.0 build issues on CI server

六眼飞鱼酱① 提交于 2019-12-17 15:18:47
问题 Anybody manage to get .NET 4.0 applications compiling on a CI server without installing Visual Studio 2010 on a CI server? No SDK exists for .NET 4.0. Have installed .NET 4.0 on CI Server. Msbuild.exe works for simple projects and give the following warning: (GetReferenceAssemblyPaths target) -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(847,9): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this,

How to build .NET 4.6 Framework app without Visual Studio installed?

前提是你 提交于 2019-12-17 15:15:23
问题 Until now, I could build .NET 4.5.2 using command line c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild MySolution.sln The only what I need to install on a computer was .NET Framework and Visual Studio 2010 shell. Now I consider upgrading to .NET 4.6., but I cannot find a way how to build a solution without Visual Studio. I don't want to install Visual Studio 2015, because it is too big for this hosted virtual machine. I hope some MSBuild or Microsoft package installation could be

Best practices for large solutions in Visual Studio (2008) [closed]

丶灬走出姿态 提交于 2019-12-17 15:02:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking

Best practices for large solutions in Visual Studio (2008) [closed]

痞子三分冷 提交于 2019-12-17 15:00:06
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking

msbuild, how to set environment variables?

限于喜欢 提交于 2019-12-17 13:44:19
问题 I am trying to set environment variables using project file (ex. .vcxproj) I looked at property functions but it didn't seem to have such function. I know there is a way to retrieve environment variable but couldn't find how to set it. I feel like there should be way to set environment variables in project file. 回答1: A couple of things: 1) If you are only using the variable in the context of MSBuild, then you can just use the standard MSBuild variables instead of trying to set an environment

MSBuild exec task without blocking

怎甘沉沦 提交于 2019-12-17 12:17:53
问题 Would anyone happen to know a trick that will keep this MSBuild task from blocking? I really just want the explorer to open and the build script to keep on going. Currently it blocks at the Exec task until the explorer window is closed. <Target Name="OpenExplorer"> <Exec Command='explorer.exe "$(DestinationDir)"' IgnoreExitCode="true" /> </Target> Thanks! Edit: I was hoping to avoid creating a custom task for this. Perhaps some command line magic exists that could be placed inline for the

MSBuild exec task without blocking

喜欢而已 提交于 2019-12-17 12:16:39
问题 Would anyone happen to know a trick that will keep this MSBuild task from blocking? I really just want the explorer to open and the build script to keep on going. Currently it blocks at the Exec task until the explorer window is closed. <Target Name="OpenExplorer"> <Exec Command='explorer.exe "$(DestinationDir)"' IgnoreExitCode="true" /> </Target> Thanks! Edit: I was hoping to avoid creating a custom task for this. Perhaps some command line magic exists that could be placed inline for the

MSBUILDEMITSOLUTION not working with .NET 4?

天大地大妈咪最大 提交于 2019-12-17 10:59:29
问题 In prior versions of MSBuild, you could set an environment variable named MSBUILDEMITSOLUTION to 1 to get an XML version of a solution (.sln) file that could be parsed. According to the MSBuild Team Blog, that's still in the version that ships with Visual Studio 2010, but it does not seem to be working. Has anyone managed to get this working with MSBuild 4.0? If so, what is required? (We use this to find and run convention-based unit tests with an NAnt script.) 回答1: Set MSBuildEmitSolution=1

In MSBuild, can I use the String.Replace function on a MetaData item?

吃可爱长大的小学妹 提交于 2019-12-17 10:44:47
问题 In MSBuild v4 one can use functions (like string.replace ) on Properties . But how can I use functions on Metadata ? I'd like to use the string.replace function as below: <Target Name="Build"> <Message Text="@(Files->'%(Filename).Replace(".config","")')" /> </Target> Unfortunately this outputs as (not quite what I was going for): log4net.Replace(".config","");ajaxPro.Replace(".config","");appSettings.Replace(".config","");cachingConfiguration20.Replace(".config","");cmsSiteConfiguration

How to add the custom nuget feed to TeamCity build?

穿精又带淫゛_ 提交于 2019-12-17 10:35:46
问题 I have created a Nuget Server using Teamcity (running on a virtual machine in internet) and created the build that publishes a package into it. I also have another project that needs to use that package. This project is built on teamcity as well. On my local Visual Studio I added the nuget feed uri, installed the package and everything works fine. But when I try to build it on teamcity it says that "Package not found". So my question is : "How to add the custom nuget feed to TeamCity build?"