msbuild

MSBuild cannot find reference when executed through TFS build service

江枫思渺然 提交于 2020-01-15 02:34:23
问题 I have a solution with reference to Telerik assemblies. The referenced version has been installed on the build server. The issue is that the continuous integration build always succeeded until I upgraded the Telerik assemblies in the solution and on my build server. The build now fails giving the classical: Could not resolve this reference. I checked my solution and everything is set to reference the specific version. The most suprising is that if I open the solution locally on the build

MSBuild cannot find reference when executed through TFS build service

拟墨画扇 提交于 2020-01-15 02:33:28
问题 I have a solution with reference to Telerik assemblies. The referenced version has been installed on the build server. The issue is that the continuous integration build always succeeded until I upgraded the Telerik assemblies in the solution and on my build server. The build now fails giving the classical: Could not resolve this reference. I checked my solution and everything is set to reference the specific version. The most suprising is that if I open the solution locally on the build

MSBuild - trying to run xUnit (.net) tests

断了今生、忘了曾经 提交于 2020-01-14 09:08:09
问题 I'm trying to set up a C# project that'll run xUnit tests when I build, so I can use them in continuous integration. I have a regular project, a class library test project using xUnit, and my test runner project. From everything I've read, it appears that I should be able to get this working by doing this in the test runner project: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> [auto

Cannot resolve dependency to assembly 'PostSharp' because it has not been preloaded

Deadly 提交于 2020-01-14 09:07:12
问题 My project structure A.dll, which has PostSharp installed via NuGet and uses it. B.exe, which references A and does not use PostSharp. Edit: I created a test solution to see if I could recreate the issue, and the error went away, so it appears to be some other build-time process in the original project. I don't know yet what. My problem Currently this causes a compilation error for B. Unknown build error, 'Cannot resolve dependency to assembly 'PostSharp, Version=3.0.40.9, Culture=neutral,

Cannot resolve dependency to assembly 'PostSharp' because it has not been preloaded

一个人想着一个人 提交于 2020-01-14 09:04:07
问题 My project structure A.dll, which has PostSharp installed via NuGet and uses it. B.exe, which references A and does not use PostSharp. Edit: I created a test solution to see if I could recreate the issue, and the error went away, so it appears to be some other build-time process in the original project. I don't know yet what. My problem Currently this causes a compilation error for B. Unknown build error, 'Cannot resolve dependency to assembly 'PostSharp, Version=3.0.40.9, Culture=neutral,

MSBuild IIS issue

↘锁芯ラ 提交于 2020-01-14 08:20:29
问题 I'm using MSBuild to package and publish an my Asp.Net MVC 3, .Net 4 Application. I've already successfully done this for an MVC 1.0, .Net 3.5 application. Whenever I include the IIS Settings ( IncludeIisSettings=true ) in my .proj file I get the following build error: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2046, 5): error MSB4044: The "EscapeTextForRegularExpressions" task was not given a value for the required parameter "Text". 回答1:

VS 2017 Build Tools failing with Error MSB4019: The imported project “D:\Microsoft.Cpp.Default.props” was not found

自闭症网瘾萝莉.ら 提交于 2020-01-14 04:29:36
问题 I'm building a new TFS build server and decided to use the VS 2017 Build Tools instead of installing the full versions of VS. When I attempt to build our C++ projects, it throws the following error: Error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. After many hours of research I'm no closer to resolving this issue. I tried adding the following registry settings but it did not help. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft

AssemblyInfo not found and msbuild extension pack installed

喜夏-厌秋 提交于 2020-01-14 04:01:05
问题 I am trying to use the AssemblyInfo task and I just ran the msi for .net 4.0 for the MSBuild Extension pack. After installation, I still get this error "C:\AAROOT\csharpprojects\toolbar\project.build" (default target) (1) -> (Compile target) -> C:\AAROOT\csharpprojects\toolbar\project.build(15,5): error MSB4036: The "Ass emblyInfo" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and

Updating “Web References” as part of TFS Builds

牧云@^-^@ 提交于 2020-01-14 03:12:29
问题 Is there an easy way to update Project " Web References " as part of a TFS build? For some background... I have a couple Web References pointing at public services. The service providers change their contracts periodically and I'd like to discover this in a nightly build. I know I could build an MSBuild task that downloads the WSDL and build reference assemblies using svcutil but that would mean changing a lot more about the projects structure. Is there something built-in to the .NET stack,

Build an Access executable from command line?

ε祈祈猫儿з 提交于 2020-01-13 19:57:29
问题 We have a legacy Access application that is still in production. I would like to at least have an automated build for it. Can you build access exe's from the command line? Even better, there wouldn't by any chance, be an MSBuild target for Access would there? 回答1: a = CreateObject("Access.Application") If a.SysCmd(603, PATH_TO_BXB_FILE, PATH_TO_BXE_FILE) = 0 Then MsgBox("Fail to compile to MDB file") End If The 603 argument of syscmd is undocumented. It will fail for a number of reasons, for