msbuild

SonarQube for MSBuild - End Analysis: Error during SonarQube Scanner execution Line out of range in the file

☆樱花仙子☆ 提交于 2020-01-06 15:17:23
问题 ##[error]15:41:48.530 ERROR: Error during SonarQube Scanner execution ##[error]java.lang.IllegalStateException: Line 33 is out of range in the file Controllers/BaseAccessRequestController.cs (lines: 30) I am using Sonar 5.6.5 version and MSBuild 14. Sonar is running as Windows Service. If I exclude this controller then same error comes for other random controller. If I exclude all controllers but keep one or two for which unit tests are written then error goes away but the coverage is shown

Unwanted changes in .csproj file on build

戏子无情 提交于 2020-01-06 14:08:12
问题 I'm trying to auto-detect web.configs as part of a transform pre-build event in one of my web application project files, this code goes up one folder level from my project file and gets all web.configs in every directory and sub directory: <ItemGroup> <WebConfigsRelativePath Include ="..\**\Web.config"/> </ItemGroup> This works great but everytime I build and exit Visual Studio, I get a prompt asking me if I want to save changes made to my solution file. If I select yes, and open the project

CruiseControl.NET: Build subproject obtained by SVN

☆樱花仙子☆ 提交于 2020-01-06 08:10:05
问题 I have this project structure: main -- main.csproj main/subproject1 --- main.subproject1.csproj main/subproject1/view/ --- main.subproject1.view.csproj main/subproject1/business/ --- main.subproject1.business.csproj main/subproject1/metadata/ --- main.subproject1.metadata.csproj main/subproject1/facade/ --- main.subproject1.facade.csproj main/subproject1/data/ --- main.subproject1.data.csproj main/subproject2 main/subproject2/view/ ... so, I want to build/compile only the specific .csproj

set vcbuild environment through msbuild

萝らか妹 提交于 2020-01-06 06:59:49
问题 I have an msbuild project file that is used for building several C++ projects (*.vcproj). Here's a part of a typical project file, in which global environment variables for the build are overridden as properties: <PropertyGroup> <MYBINDIR>d:\buildsysroot\bin</MYBINDIR> <MYLIBDIR>d:\buildsysroot\lib</MYLIBDIR> ... </PrpertyGroup> <ItemGroup> <MyItems Include="d:\buildsysroot\myproject\myproject.vcproj"/> </ItemGroup> <Target Name="Release_x64"> <VCBuild Projects="@(MyItems)" Configuration=

xcopy /s /y “$(SolutionDir)packages\Apache.Ignite.1.6.0\Libs\*.*” “$(TargetDir)Libs” error while building in jenkins

落爺英雄遲暮 提交于 2020-01-06 06:09:37
问题 Hello All, while building Visual project project from jenkins am getting below error i have set msbuild plugin and set path in jenkins. C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: The command " [C:\Users\Administrator.jenkins\workspace\DrawingsFabric\DrawingsFabricApi\DrawingsFabricApi.csproj] C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: if not exist "C:\Users\Administrator

Execute bat file in the build event got the error “error MSB3073: The command ”call “MyTest.bat” exited with code 1."

不羁岁月 提交于 2020-01-06 05:34:30
问题 In our solution we have more than 150 projects, I need build one of project before others, but I did not want to set project reference or project dependencies for more than 100 projects one by one. This is a waste of time. So I ask following question before this one: Set build order without using project reference And as @Leo Liu suggested that I could use batch file to build the project first, it is should be a valid workaround. As optimization, I want set this bat file in the build event of

How to sign the output executable during the build process in Visual Studio?

自作多情 提交于 2020-01-06 05:11:51
问题 When I use a strong name key file as indicated in the project properties, it requires that all referenced assemblies to also use such a similar signature. But what I want is to sign using the WinDDK Signtool.exe . This I already do manually, but I also want to debug sign assemblies, and the best way of doing that is including the signature in the build, probably as a AfterBuild step. The problem is I don't know how to create a AfterBuild step 回答1: You are mixing things up here. A strong name

How to sign the output executable during the build process in Visual Studio?

你。 提交于 2020-01-06 05:11:01
问题 When I use a strong name key file as indicated in the project properties, it requires that all referenced assemblies to also use such a similar signature. But what I want is to sign using the WinDDK Signtool.exe . This I already do manually, but I also want to debug sign assemblies, and the best way of doing that is including the signature in the build, probably as a AfterBuild step. The problem is I don't know how to create a AfterBuild step 回答1: You are mixing things up here. A strong name

Deploying a ClickOnce application to multiple servers

丶灬走出姿态 提交于 2020-01-06 03:24:06
问题 We're looking at using ClickOnce deployment as a means of distributing our application. However, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one. I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is too slow to have the application check a central server each day for updates, although we do want it to check each time the application is run. Each branch has

Deploying a ClickOnce application to multiple servers

梦想与她 提交于 2020-01-06 03:24:05
问题 We're looking at using ClickOnce deployment as a means of distributing our application. However, due to problems with bandwidth, we would need to deploy the application to multiple servers on the network rather than just one. I work for a bank and am wanting to roll out a WPF client to all of our branches, but the branch network is too slow to have the application check a central server each day for updates, although we do want it to check each time the application is run. Each branch has