msbuild

Why does modifying project output directories cause: IOException was unhandled “Cannot locate resource 'app.xaml'.”

随声附和 提交于 2020-01-19 06:01:48
问题 In an attempt to consolidate project settings into property sheets for both C++ and C# projects, the following property sheet was constructed: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Trying to support both C++ and C# projects by introducing derived properties and setting the appropriate output properties. --> <PropertyGroup Label="UserMacros"> <ProjectOrAssemblyName Condition="'

Why does modifying project output directories cause: IOException was unhandled “Cannot locate resource 'app.xaml'.”

柔情痞子 提交于 2020-01-19 06:01:14
问题 In an attempt to consolidate project settings into property sheets for both C++ and C# projects, the following property sheet was constructed: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Trying to support both C++ and C# projects by introducing derived properties and setting the appropriate output properties. --> <PropertyGroup Label="UserMacros"> <ProjectOrAssemblyName Condition="'

Use SVN Revision to label build in CCNET

廉价感情. 提交于 2020-01-19 04:18:50
问题 I am using CCNET on a sample project with SVN as my source control. CCNET is configured to create a build on every check in. CCNET uses MSBuild to build the source code. I would like to use the latest revision number to generate AssemblyInfo.cs while compiling. How can I retrieve the latest revision from subversion and use the value in CCNET? Edit: I'm not using NAnt - only MSBuild. 回答1: CruiseControl.Net 1.4.4 has now an Assembly Version Labeller, which generates version numbers compatible

使用jenkins配置.net mvc网站进行持续集成一

时间秒杀一切 提交于 2020-01-18 19:22:58
最近在做一个团队项目的时候,用到了自动编译发布部署环境【也可以说是持续集成】,于是顺便学习了下这个环境的搭建过程。 持续集成   持续集成是一种软件开发实践,即团队开发成员经常集成它们的工作,通常每个成员每天至少集成一次,也就意味着每天可能会发生多次集成。每次集成都通过自动化的构建(包括编译,发布,自动化测试)来验证,从而尽早地发现集成错误。 1、持续集成系统的组成   一个完整的构建系统必须包括: 1) 一个自动构建过程,包括自动编译、分发、部署和测试等。 2) 一个代码存储库,即需要版本控制软件来保障代码的可维护性,同时作为构建过程的素材库。 3) 一个持续集成服务器。 其中1)自动构建和2)代码存储库,都是有相应的软件配合,开发人员需要的学习成本不高,复杂在各模块的相互配合,这一期间可能需要大量时间去调试。一旦调试完毕,对于之后工作效率的提升是成倍的。 2、MSBuild   自动构建,做.Net开发的同仁相信大多数都会使用VS,而Visual Studio用MSBuild构建.NET项目。 MSBuild所需的仅仅是一个脚本,在脚本中指定要执行的target;项目中的.csproj和.vbproj 文件都是MSBuild脚本。当编写好MSBuild脚本后,只需要一条简单的命令,即可实现代码的编译与测试工作 。 参考: [独孤九剑]持续集成实践 – MSBuild语法入门

MsbuildSonar Runner +Fxcop - No fxcop issues are posted to server.SonarDashBoard shows 0 technical debt

情到浓时终转凉″ 提交于 2020-01-17 03:41:06
问题 I am using Sonarqube 5.1 with MsBuildSonarRunner for my c#.net project analysis. Sonarqube 5.1 has come with C# 4.1 plugin, Recently I upgraded to 4.2. I have created a quality profile with ONLY Fxcop rules . I have followed the steps mentioned in Sonar site for analysis. In analysis, I see that FXcop rule violations are captured. But when I browse to SonarDash board, It shows technical debt as 0 and issues as 0. I have reviewed my steps many times and I don't see any mistakes from my side.

Best practice for automating Php project builds using Visual Studio Ultimate/Online and Git

有些话、适合烂在心里 提交于 2020-01-17 03:12:10
问题 We have an existing Php application that I'd like to integrate into my very simple MS Build process. Currently we are using Visual Studio 2013 Ultimate with Visual Studio Online (TFService) and Git to source control various C++, C# and this Php web applications (all in different Git repositories). To develop our Php code inside of VS2013, we use Devsense's Php Extension (http://www.devsense.com/products/php-tools). This has been great, but doesn't natively support automated builds. Has anyone

how to exclude(disable) PackageReference's (transitive)dependency in MSBuild?

若如初见. 提交于 2020-01-16 19:31:09
问题 I'm using a package Xamanimation which has a dependency of Xamarin.Forms 4.1.0 ( written in its nuspec file): <dependencies> <group targetFramework=".NETStandard2.0"> <dependency id="Xamarin.Forms" version="4.1.0.581479" exclude="Build,Analyzers" /> </group> </dependencies> but I have built the Xamarin.Froms for my own and added the output dll files into my project's reference: <Reference Include="Xamarin.Forms.Xaml"> <HintPath>..\thirdparty\xforms\Xamarin.Forms.Xaml.dll</HintPath> <

Xmlpoke to add multiple appsettings key doesn't work

亡梦爱人 提交于 2020-01-16 19:12:13
问题 I have a Msbuild target that gets executed successfully by adding a single key called 'ProjectID' to the appsetting section of web.config. Now am changing the behavior of this target by adding one more key 'ApplicationId' to the same appsetting section. The log shows the xmlpoke is executed for both. But only the projectID value is correctly replaced with every run. (Excerpt from)PropertyGroup definition: <?xml version="1.0" encoding="utf-8" ?> <Project ToolsVersion="15.0" DefaultTargets=

How do I modify the “File Description” of an executable using msbuild (or command line)?

谁说胖子不能爱 提交于 2020-01-16 18:50:11
问题 I have a 3rd party app that is generating an executable for me, but it's putting its own name into the "File description" and "product name" details of the executable. When I sign these with authenticode, it causes the user prompt to show the 3rd party app name rather than my own, even though it's signed with my company's certificate. Is there a way to modify this from the command line, using some msbuild task? I know there are tasks that do this before compilation -- but in this case, I'm

Is the ClCompile item a task as well?

≯℡__Kan透↙ 提交于 2020-01-16 11:23:08
问题 I am trying to understand the visual cpp project document here (https://docs.microsoft.com/en-us/cpp/build/walkthrough-using-msbuild-to-create-a-visual-cpp-project). <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release<