msbuild

VS 2010 Solution Configuration build for a project context

夙愿已清 提交于 2019-12-21 20:21:44
问题 I have a Visual Studio solution containing 30+ projects. There are 2 build configurations, Debug and Release. Ten of the project files ( .csproj ) are generated reasonably frequently using an external tool and the templates for that generation include the Debug and Release configurations. Modifying the templates to include additional configurations is not really an option. So the problem I have is that I have a new project that is hosted in AppFabric/IIS. I'm using Web.Config transformations

web.config transformation does not work on build server

久未见 提交于 2019-12-21 20:15:30
问题 We are setting up continuous integration with team city doing builds on check-ins. This works fine, however it always builds with default web.config, it does not transform with development environment specific web config. In Visual Studio, I have custom build configuration created for development. The 'web.development.config' transforms correctly when I publish locally with 'development' configuration selected. But this does not happen on the build server. In team city, as part of msbuild

Perforce tasks for MS Build

邮差的信 提交于 2019-12-21 17:31:04
问题 Are there any community MSBuild tasks for Perforce (e.g. even just basic syncing)? Neither the MSBuild Community tasks or MSBuildExtenstion pack seem to have any. 回答1: It looks like the open source MSBuild Contrib project has some p4 tasks. I've never used them before so I can't say how well they work. If they don't work you can always write your own tasks, they are pretty easy if you are able to write .NET code. If you don't want to go that route you can use the Exec task to execute command

Web Deploy to Server with MSBuild

自作多情 提交于 2019-12-21 17:29:35
问题 I have a publish profile set up in a VS 2012 project. When I right click on the project in VS, select Publish and click on the [Publish] button, it publishes the project to the server using the settings provided in the Publish Profile. When I use msbuild and the command line, with the following syntax: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true Then it builds the project, and gives me a message: Package

Private Accessor don't build when using MSBuild

℡╲_俬逩灬. 提交于 2019-12-21 17:28:48
问题 My build server uses MSBuild to build my application. Our unit tests require access to some private members for testing, so we use the built in private accessors. Visual Studio has no problem with it, but when we push our code to the build server we get the error: MyTest.cs (96,13): errorCS0246: The type or namespace name 'My_Accessor' could not be found (are you missing a using directive or an assembly reference?) Why is it that MSBuild ignores the private accessors and how can I fix it? We

c#, MSBuild Bootstrapper with wix, how to download .net framework 3.5 SP1?

妖精的绣舞 提交于 2019-12-21 17:24:40
问题 I managed to create bootstrapper for my project that includes .net framework 3.5SP1 with this code: <ItemGroup> <BootstrapperFile Include="Microsoft.Net.Framework.3.5.SP1"> <Visible>False</Visible> <ProductName>.NET Framework 3.5.SP1</ProductName> <Install>true</Install> </BootstrapperFile> </ItemGroup> <Target Name="Bootstrapper"> <GenerateBootstrapper ApplicationFile="SeppelSetup.msi" ApplicationName="Seppel 1.0" BootstrapperItems="@(BootstrapperFile)" OutputPath=".\bin\Debug"

Resolving incorrect project reference GUIDs

喜欢而已 提交于 2019-12-21 15:19:30
问题 I have some projects in a Visual Studio solution that have ended up with project references that include the wrong GUID for the referenced project. (Possibly due to the referenced project being recreated at some stage) eg. Consider a project CoreProject.csproj with the following properties: <ProjectGuid>{93803F9C-8C65-4949-8D44-AB7A3D0452C8}</ProjectGuid> <OutputType>Library</OutputType> <RootNamespace>CoreProject</RootNamespace> <AssemblyName>CoreProject</AssemblyName> Another project

TeamCity: How tell MSBuild to take into account publish profile parameters?

不想你离开。 提交于 2019-12-21 13:13:08
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>

TeamCity: How tell MSBuild to take into account publish profile parameters?

允我心安 提交于 2019-12-21 13:13:06
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>

TeamCity: How tell MSBuild to take into account publish profile parameters?

柔情痞子 提交于 2019-12-21 13:13:06
问题 I have TeamCity build configuration with MSBuild step, when i would like to compile my project with publish profile. My publish profile is located in MyProject\Properties\PublishProfiles\profile.pubxml . My profile.pubxml: <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform>