msbuild

List of msbuild properties TFS passes to a build script

喜你入骨 提交于 2019-12-20 09:47:13
问题 I'm looking for a page that lists all msbuild properties that TFS passes to a build script and I can't find it. Thanks Pawel 回答1: Customizable Team Foundation Build Properties 30 Useful Team Build Properties 来源: https://stackoverflow.com/questions/9287312/list-of-msbuild-properties-tfs-passes-to-a-build-script

What do I need to setup a Jenkins build server that can build ASP.NET projects without Visual Studio?

谁都会走 提交于 2019-12-20 09:46:46
问题 I'm trying to setup a build server using Jenkins (on Windows Server 2012) that will be responsible for building (with config transform) and packaging (zip file) ASP.NET MVC/Web API projects, then moving them to designated location (C:/Published). Basically, I need the Visual Studio Web Publish for File System via command line without having to install Visual Studio. The zipping process can be deferred to the command line via Jenkins. From searching, the following steps is what I've done so

“C:\Microsoft.Cpp.Default.props” was not found

时光毁灭记忆、已成空白 提交于 2019-12-20 09:39:13
问题 I have a project created in Visual Studio, 2013. The project file has the following properties: ToolsVersion="12.0", PlatformToolset = v120. I have Visual Studio 2013 and Microsoft Build Tools 2015 installed. This project gets successfully built using MSBuild 12.0. Upon the attempt to build it with MSBuild 14.0 I get an error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on

Microsoft Build Tools 2013 missing v120 directory

青春壹個敷衍的年華 提交于 2019-12-20 09:04:00
问题 We've installed the Microsoft Build Tools 2013, from http://www.microsoft.com/en-us/download/details.aspx?id=40760, but after installation, there is no C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120 directory created, and so it cannot find required targets files. Do we really need to install a version of VS2013 for the required targets/props files to be created? 回答1: The answer is yes, you need to install VS2013. Then add a new string value named VCTargetsPath12 to HKEY_LOCAL_MACHINE

How do I deploy using MSDeploy in Team Build 2010 using the WMSVC service and NTLM authentication?

北慕城南 提交于 2019-12-20 08:48:48
问题 I am trying to deploy using Team Build 2010 to a Windows Server 2008 R2 web server. My build server agent is setup to run under a Windows domain account. I have successfully given this domain account permissions on my web server for the deployment using the IIS Manager permissions. This account is not an Administrator on the web server. I can get the build deploying just fine using the following parameters: /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False

Breaking MsBuild package & deploy into separate MsBuild and MsDeploy commands

心不动则不痛 提交于 2019-12-20 08:46:53
问题 I'm having a few problems breaking out an MsBuild package+deploy command into two separate commands. (I need to do this to pass additional parameters to MsDeploy). The command that works fine looks like this: msbuild "src\Solution.sln" /P:Configuration=Deploy-Staging /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://192.168.0.1:8172/MsDeploy.axd /P:DeployIISAppPath=staging.website.com /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WmSvc /P

Using msbuild I want to update a config file with values from teamcity

坚强是说给别人听的谎言 提交于 2019-12-20 08:25:02
问题 I have some XML that looks something like this: <?xml version="1.0" encoding="utf-8"?> <XmlConfig instancetype="XmlConfig, Processing, Version=1.0.0.0, Culture=neutral"> <item> <key>IsTestEnvironment</key> <value>True</value> <encrypted>False</encrypted> </item> <item> <key>HlrFtpPutDir</key> <value>C:\DevPath1</value> <encrypted>False</encrypted> </item> <item> <key>HlrFtpPutCopyDir</key> <value>C:\DevPath2</value> <encrypted>False</encrypted> </item> .... </Provisioning.Lib.Processing

Not able to create a Xamarin-component for android Source code

為{幸葍}努か 提交于 2019-12-20 07:13:33
问题 • I have used the command xamarin-component.exe package C:\cmp\AndroidComponent\component for creating Xamarin component.While building the Sample android project, it is showing the below error. (I have used the command xamarin-component.exe package C:\cmp\AndroidComponent\component -verbose to display the error message in detail). Error message: C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(155,2): error MSB3644: The reference assemblies for framework

Use properties in props/csproj files in C# code

六眼飞鱼酱① 提交于 2019-12-20 06:17:25
问题 Say I have a property SomeValue declared in my csproj file or in a props file. Is there a way I can reference that property in my C# code? 回答1: You could add a pre-build task to inject the value into your code but there is no way to reference a property because the project file is not part of the code - it's just a container for your code holding some properties that are used for templating your code files like for example the default namespace of your project that gets added to code files

What Parameters do I need to pass to the PackageWeb powershell script to make it deploy to my remote machine

好久不见. 提交于 2019-12-20 04:49:50
问题 still, I am fiddling around within the MSBuild-/MSDeploy-world and have been scratching my head far too often lately. I want to be able to build a Web Application Project only once and deploy it to multiple configurations . I found this PackageWeb-Solution from Sayed I. Hashimi which enables you to add a Nuget-Package to your WAP that will add additional files to a generated WebDeploy-Package. (You can actually take a look at this 5-Minute-Video to get the basics of what this post is about.)