msbuild

How to have MSBuild process all SSIS projects

依然范特西╮ 提交于 2020-07-03 06:57:46
问题 I have successfully followed the blog 1 to get MSBuild to build an SSIS project. This involved creating a dll and an MSBuild script. The process works correctly for any single project file. I'm looking for help in getting this process to work for each .dtproj file that is defined in a solution (.sln) file. I have read about MSBuild Batching 2 but it refers to items that are defined in the build script. I want it to work with whatever projects are in the solution file so I don't have to

C# compiler, SDK and msbuild for NET framework

好久不见. 提交于 2020-06-29 05:05:15
问题 When trying to build a C# code with: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" project.sln "C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" project.sln I get: C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1098,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version

C# compiler, SDK and msbuild for NET framework

假装没事ソ 提交于 2020-06-29 05:05:12
问题 When trying to build a C# code with: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" project.sln "C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" project.sln I get: C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1098,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version

How can you build multiple C++ visual studio v2015+ configurations in parallel using BatchBuild

陌路散爱 提交于 2020-06-29 04:22:21
问题 I am very familiar with the IDE (23 years), but not at all with MSBuild. I have read and re-read https://docs.microsoft.com/en-gb/visualstudio/msbuild/building-multiple-projects-in-parallel-with-msbuild?view=vs-2015 about making MSBuild build multiple configurations in parallel, but I don't understand how to hook it to "batch build" (or infact MSBuild, which would be my lat resort). To describe what I want to achieve differently, if I mad 30 copies of the project all pointing to the same code

MSBuild does not copy views to the output folder

Deadly 提交于 2020-06-28 10:22:06
问题 After upgrading to .NET Core 3.1, my home-made build system broke. Here's the problem. I use MSBuild to publish a project in a CI/CD pipeline. This is my code: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" C:\Company\Solution\Solution.sln /t:UserPanel /p:DeployOnBuild=true /p:PublishProfile=DeployUserPanel /p:SolutionDir=C:\Company\Solution /property:PublishFolder=C:\Publish\Solution\UserPanel /t:Publish The exact same code would publish

SonarScanner (C#) not honoring in-code StyleCop warning suppression

守給你的承諾、 提交于 2020-06-28 03:50:23
问题 I am trying to use SonarQube for static code analysis for my organization. All our C# projects already have StyleCop enabled which has helped us a lot in terms of code readability. Now we want to utilize SonarQube for static code analysis. I successfully hosted the SonarQube server locally following the guidelines provided here. I am able to run the analysis successfully and generate the sonarqube report when there are no warning-suppressions in the code. ISSUE: Sonarqube does not consider in

Can't access ArtifactStagingDirectory variable in MSBuild

偶尔善良 提交于 2020-06-27 13:42:48
问题 During my build process I'm trying to copy a folder to the artifacts folder (\myserver\d$\TFBuild-Agent01\66\a). So I put this in the .csproj file: <Target Name="BeforeBuild"> <Exec Command="xcopy.exe Databases "$(Build.ArtifactStagingDirectory)\Databases" /i /e /y /d" /> </Target> This gets me Error MSB4184: The expression """.ArtifactStagingDirectory" cannot be evaluated. Method 'System.String.ArtifactStagingDirectory' not found* Everything I can find online says that $(Build

Can't access ArtifactStagingDirectory variable in MSBuild

こ雲淡風輕ζ 提交于 2020-06-27 13:42:28
问题 During my build process I'm trying to copy a folder to the artifacts folder (\myserver\d$\TFBuild-Agent01\66\a). So I put this in the .csproj file: <Target Name="BeforeBuild"> <Exec Command="xcopy.exe Databases "$(Build.ArtifactStagingDirectory)\Databases" /i /e /y /d" /> </Target> This gets me Error MSB4184: The expression """.ArtifactStagingDirectory" cannot be evaluated. Method 'System.String.ArtifactStagingDirectory' not found* Everything I can find online says that $(Build

How to build Visual studio Setup project using command-line?

一个人想着一个人 提交于 2020-06-26 12:24:10
问题 I have a sample WPF project and I created a Setup project to it. Now I want to build the project and Setup project through the command line. I tried with this C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe C:\Users\nandh\source\repos\CommendApp\CommendApp\CommendApp.csproj command for build the project file it is successfully worked. Then use with devenv /build Debug "C:\Users\nandh\source\repos\CommendApp\CommendApp.sln" /project "C:\Users\nandh\source\repos\CommendApp\App\App

Vs2017: NuGet packages not restored with MSBuild

纵然是瞬间 提交于 2020-06-25 03:24:54
问题 I build from VS2017 and the packages are downloaded and the projects build. Then I nuke the packages folder. Then I build using MSBuild the projects fail because the packages don't exist, they haven't been restored. I have "download missing packages" on The project files would have been originally created in VS 2013 The build.proj using the MSBuild task to build the solution. <MSBuild Projects ="$(root)\src\MySolution.sln" ContinueOnError ="false" Properties="Configuration=$(Configuration)">