msbuild

Invalid value for the configfile paramter of the generationapplication manifest task

[亡魂溺海] 提交于 2019-12-14 00:54:03
问题 I have an issue when i want to publish a project i receive the error message "obj\debug\project.exe.config;obj\Debug\project.exe.config"is an invalid value for the "ConfigFile" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". I have searched about the issue and i found i have to uncheck "Enable ClickOnce security settings" at Properties/Security but still have the same problem cannot publish my

Visual Studio Conditional Project Configuration Editor

落爺英雄遲暮 提交于 2019-12-14 00:40:43
问题 I have a project, that contains many references and they all are conditional, show I have manually edited Proj files as below, <ItemGroup Condition=" '$(Configuration)' == 'Release' "> <Reference Include="Assembly1"> <HintPath>..\Release\Path\Assembly1</HintPath> </Reference> <Reference Include="Assembly2"> <HintPath>..\Release\Path\Assembly2</HintPath> </Reference> </ItemGroup> <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <Reference Include="Assembly1"> <HintPath>..\Debug\Path

What are the specific version numbers of the C# 4, 5 and 6 compilers and how to know which one Visual Studio is using to compile my project?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 22:21:58
问题 I know that I've got the C# 6 compiler and I use C# 6 features often and when I write applications to practice, I usually target .NET v4.6. On this machine, I have Visual Studio 2010, 2013, 2015 and 2017 installed. When I type csc.exe from the .NET Framework v4 directory, it shows me the compiler version as 4.6.1098.0 for C# 5 , which is very confusing. C:\Windows\Microsoft.NET\Framework64\v4.0.30319>csc Microsoft (R) Visual C# Compiler version 4.6.1098.0 for C# 5 Copyright (C) Microsoft

Bamboo MsBuild .Net Framework 2.0

こ雲淡風輕ζ 提交于 2019-12-13 19:24:47
问题 My project is .Net Framework 2.0 and I am use Visual Studio 2012. My project build success at my local but project is build error at bamboo server Solution file error MSB5014: File format version is not recognized. MSBuild can only read solution files between versions 7.0 and 9.0, inclusive. 回答1: You need to use version 4 of MSBuild in the "Executable" option as this determines the version of MSBuild tools used to compile the application. Do not confuse this with the version of the .NET

msbuild: How can I exclude wildcard paths matching a regex?

纵然是瞬间 提交于 2019-12-13 19:09:05
问题 I want to include all files which match *.c , including in subdirectories, except for any file where its path (beneath the solution root) contains one or more components (directory name or filename) beginning with an underscore. For some reason, this isn't working: <ItemGroup> <ClCompile Condition="!$([System.Text.RegularExpressions.Regex]::IsMatch('%(Identity)', `.*[/\\]_.*`))" Include="../../src/foo/**/*.c"/> </ItemGroup> How can I do this in msbuild? I'm using msbuild 14.0. 回答1: The sytnax

How to specify the platform in devenv build CruiseControl.net

橙三吉。 提交于 2019-12-13 18:47:22
问题 When building with msbuild we can give the platform as below <msbuild> <buildArgs>Platform=x86</buildArgs> </msbuild> Do you know how to speficify the platform if we are using devenv? <devenv> ??? </devenv> 回答1: Use this syntax: <devenv> <configuration>Configuration|Platform</configuration> </devenv> for example: <devenv> <configuration>Debug|Win32</configuration> </devenv> 来源: https://stackoverflow.com/questions/5905652/how-to-specify-the-platform-in-devenv-build-cruisecontrol-net

TFS Build missing .targets files intermittently

浪尽此生 提交于 2019-12-13 18:24:08
问题 Our builds are failing on the TFS build server with the same errors from time to time. I'm getting this message on one of our projects (the error refers to a WebApi project): The imported project "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.CompactFramework.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. And this one on another project (on smart device projects): The imported project "C:\Program Files (x86)\MSBuild

How to add item transform to VS2012 .proj msbuild file

烂漫一生 提交于 2019-12-13 18:15:49
问题 Based off this answer describing an item transform to convert image files from jpg to png, I made an item transform that converts .docx file to .pdf. When I call it from my projectname.proj build file I get this error message: Error 1 The condition " '%(Extension)' == '.docx' " on the "WordToPdf" target has a reference to item metadata. References to item metadata are not allowed in target conditions unless they are part of an item transform. [project path]\.build\WordToPdf.Tasks.target 7 9

Automatically add links to class source files under a specified directory of another project in Visual Studio 2008 solution

岁酱吖の 提交于 2019-12-13 17:49:02
问题 I want to share some class source files between two projects in Visual Studio 2008. I can't create a project for the common parts and reference it (see my comment if you are curious to why). I've managed to share some source files, but it could be a lot more neat. I've created a test solution called Commonality . The Solution Explorer of the Commonality solution which contains project One and Two : What I like: All class files under the Common folder of project One are automatically added to

msdeploy cannot reach destination despite having web deployment service started

不想你离开。 提交于 2019-12-13 16:22:54
问题 as you can see from the title I am experiencing some trouble deploying to a remote IIS. Here is what I have done so far: I have set up a virtual machine running an IIS7 on Windows Server 2008. I have bridged the VMs network adapter. I have installed and started the "Web Deployment Agent Service" as well as the "Web Management Service". I also created a new IIS manager user and granted him access to the website in question. Now deploying itself works when I do it like this for example: msbuild