msbuild

Execute SQL script after SSIS build or check-in

感情迁移 提交于 2020-01-04 08:22:47
问题 I am trying to find a better way to test our SSIS application, which is used to load data from a file into SQL Server and validate the file data. I have created a SQL script which can be run to insert 'bad' data into the database tables, and ensure that our validations are performing correctly. The SQL script: - loads 'bad' data - executes the SSIS validations - ensures the errors in the data were detected - Outputs a PASS or FAIL - Deletes the TEST data if passed Is there anyway I can get

MSBuild throws 'name too long' on project if called from Jenkins but not CMD

微笑、不失礼 提交于 2020-01-04 06:21:33
问题 If I run the following command manually everything compiles fine. cd D:\Jenkins\[redacted]\Api> C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /property:Configuration=Release Api.sln If I run the same command (copy/paste) from Jenkins MSBuild gives me the following error for one of my projects "D:\Jenkins\[Redacted]\Logic\[Redacted].Api2.Logic.csproj" (default target) (26) -> (GenerateSatelliteAssemblies target) -> ALINK : error AL1061: Cannot set option 'description' because 'The

MSBuild throws 'name too long' on project if called from Jenkins but not CMD

喜夏-厌秋 提交于 2020-01-04 06:19:27
问题 If I run the following command manually everything compiles fine. cd D:\Jenkins\[redacted]\Api> C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /property:Configuration=Release Api.sln If I run the same command (copy/paste) from Jenkins MSBuild gives me the following error for one of my projects "D:\Jenkins\[Redacted]\Logic\[Redacted].Api2.Logic.csproj" (default target) (26) -> (GenerateSatelliteAssemblies target) -> ALINK : error AL1061: Cannot set option 'description' because 'The

How does task MSBuild loop over files

冷暖自知 提交于 2020-01-04 05:58:11
问题 <Target Name="Build"> ... <MSBuild Projects="$(MSBuildProjectFile)" Condition="'@(FilesToCompile)' != ''" Targets="buildcpp" Properties="CPPFILE=%(FilesToCompile.FullPath);OBJFILE=$(ObjectFolder)\%(FilesToCompile.Filename).doj;IncludeDirs=$(IncludeDirs)" /> FilesToCompile is an ItemGroup of all .cpp files. When I look at the build log, it shows the target buildcpp being run for each of the files in CPPFILE . I understand that is what I logically want to happen but my question is, what rule of

ASP.NET web site builds locally, but throws MSB3268 on the build server

老子叫甜甜 提交于 2020-01-04 05:44:08
问题 I added a project to my web site solution. Everything built fine locally and on the build server. I added a line in web code to call a method in the new project. Everything built and worked fine locally, but it broke the build on the build server. I got a pile of errors going something like this: warning MSB3268: The primary reference "C:...\ProjectName.dll" could not be resolved because it has an indirect dependency on the framework assembly "Assembly.Name (e.g. System.Runtime)", Version=4.0

How to solve the infamouns AlwaysCreate=True rebuild issue with msbuild?

≯℡__Kan透↙ 提交于 2020-01-04 05:17:06
问题 I've spent far too much time trying to solve the problem of msbuild rebuilding your projects without any special reasons. As a remark, I did these on Visual Studio 2012, but probably most of these would also happen with 2010. I will provide all the steps found so far and wait for the real solution, as crearly what I found so far online did not solve the problem. Enable detailed build logs inside devenv.exe.config so we can debug what really happens. here. I assume that's the same as changing

How can I set the deployment path for an iisApp Provider using MsDeploy?

狂风中的少年 提交于 2020-01-04 02:37:06
问题 I am creating Web Deployment Package zip files for my Web Applications I found I am able to specify the Site Name of the application by including a pubxml during the packaging of my site and using the PublishProfile property during the build to specify that profile. The pubxml has <DeployIisAppPath>WebSiteName</DeployIisAppPath> in it and that creates the site name as seen in the IIS Management screen. I'd like to specify the location on disk of the website when it is deployed to a server

TFS Build Fail when running for TFS-GIT Repository

一世执手 提交于 2020-01-04 02:27:08
问题 I am using VS2015 & TFS2013. I have a GIT repository on TFS which has got a web application and I am trying to publish that using TFS build. I created a build for deploying that web application which fails. Here is the full error message : Cloning repository 'http://localhost:8080/tfs/defaultcollection/GitTest/_git/GitTest' into 'C:\Builds\2014\GitTest\TestGitBuild\src'. **Exception Message: Response status code does not indicate success: 404 (Not Found).** (type LibGit2SharpException)

Delphi 2009 using MSBuild in RAD Studio Command Prompt F1026 File not found

一个人想着一个人 提交于 2020-01-04 02:11:52
问题 I have been struggling to get the MSBuild to successfully build my .dproj file for the last few days on a build machine. First, I needed the EnvOptions.proj file from the developer's machine, which got me clear of the missing system.pas file, but now I am getting a compile error for a missing .dcu C:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets(123,3): error : myproject.dpr(17) Fatal: F1026 File not found: 'mymissing.dcu' Now the path to "mymissing.dcu" is included in the

Precompiled Header and MSBuild

限于喜欢 提交于 2020-01-04 01:20:11
问题 I have a precompiled header that needs to be included atop each .cpp in my project. I fear that I will waste a lot of time explaining and fixing that in coworkers code. Is there an MSBuild step that I can do to #include "stdafx.h" at the top of all my .cpp files so it dosen't need to do done manually? 回答1: You have the compiler option /FI pathname which virtually add #include "pathname" at the first line of the file. Note: the equivalent for gcc is -include path . 来源: https://stackoverflow