msbuild

ASPNETCOMPILER error, can not load assembly (in msbuild only)

依然范特西╮ 提交于 2019-12-25 05:11:16
问题 I am using VS2015, and MSBuild 14. My solution has many projects, but three of them are old ASMX web sites. The ASMX website "projects" don't have their own project files, but are detailed in the XML of the solution file itself. The solution builds fine inside Visual Studio. However, when I try to build on the command line with MSBuild, I am getting an error message. Here is my MSBuild command: C:\> msbuild MySolution.sln /t:MyAsmxProject All the dependent projects (mostly c# class libraries)

ASPNETCOMPILER error, can not load assembly (in msbuild only)

妖精的绣舞 提交于 2019-12-25 05:11:02
问题 I am using VS2015, and MSBuild 14. My solution has many projects, but three of them are old ASMX web sites. The ASMX website "projects" don't have their own project files, but are detailed in the XML of the solution file itself. The solution builds fine inside Visual Studio. However, when I try to build on the command line with MSBuild, I am getting an error message. Here is my MSBuild command: C:\> msbuild MySolution.sln /t:MyAsmxProject All the dependent projects (mostly c# class libraries)

trying to get TFS teambuild to build c#>VB6>c# application (ComReference prob?)

半世苍凉 提交于 2019-12-25 05:06:53
问题 I'm trying to get TFS team-build to reliably build a WPF C# app. This app relies on a VB6Lib.dll which we maintain, this VB6Lib.dll itself relies on other C# libs that we also maintain. I've set up a build definition to build (in order): VbDependencies.sln (all libs in this have com interop set, thus the VB6 can find their TLBs) buildVB6Lib.proj (an msbuild file which calls "VB6.exe /make /d" to make the VBLib.dll on the build server, as part of this script I've been copying the VB6Lib.dll

Integrating javascripts unit tests code coverage in MSBuild

青春壹個敷衍的年華 提交于 2019-12-25 04:22:23
问题 I am using Jasmine and Karma for writing unit tests and code coverage. I have created the tasks using Gulp and running them through task runner explorer in VS 2015 update 3. var gulp = require("gulp"); var Server = require('karma').Server; var remapIstanbul = require('remap-istanbul/lib/gulpRemapIstanbul'); gulp.task('unit-tests', function (done) { new Server({ configFile: __dirname + '/karma.conf.js' }, done).start(); }); gulp.task('code-coverage', function () { return gulp.src('_reports

PreBuild for PreBuild Event Command in csproj

女生的网名这么多〃 提交于 2019-12-25 04:11:54
问题 Can I specify in csproj file that the exe being executed in prebuild events should be built before executing it? 回答1: You can do it through Visual Studio which will actually edit your .csproj file in fact. Right click on the project and select Project Dependencies and select the project which you need to build before this project. Verify it by selecting the Build order tab. 来源: https://stackoverflow.com/questions/10426029/prebuild-for-prebuild-event-command-in-csproj

Create a .Net project strictly for composition of NuGet packages

僤鯓⒐⒋嵵緔 提交于 2019-12-25 03:44:11
问题 I'd like to create a .Net project (.Net Framework, not Core) that exists strictly for the sake of composing various other NuGet packages. I have a plugin-based system where all plugins are NuGet packages and the core-system itself is a NuGet package. The core system is useless without the plugins, it is strictly an engine that knows how to run the plugins. Because I do not want to include references to plugins in my core system, I need an entirely separate project which is the composition of

Adding reference to windows phone class library via project will build; adding the dlls directly fails

試著忘記壹切 提交于 2019-12-25 03:32:30
问题 I wasn't quite sure how to word the title as I'm very confused about this problem, edits or suggestions to clarify are welcome... Anyway, the problem is that I have a Windows Phone 8.1 (RT) application, and I'm attempting to use add a reference to a class library so that I can make use of code and XAML views in that project. If I add the entire class library project to my visual studio solution, and then add a reference to that project in my app, everything works fine. However, if I remove

Building C++ projects that targets framework 3.5 but produces assemblies targeting framework 4.0

这一生的挚爱 提交于 2019-12-25 03:16:29
问题 Background We have a C++ solution that has been moved from VS2005 to VS2010 where the project files were targeting the .net framework 3.5 but since moving over to VS2010, all of the project files were showing that they were targeting the.net framework 4.0. I have since changed the .vcxproj files manually so that they are targeting the .net framework 3.5, using the method described in the Community Content on this link The Problem When I build these project files, manually or via an automated

Visual studio How to set output path dependant of assembly version

こ雲淡風輕ζ 提交于 2019-12-25 01:39:22
问题 I want to configure my main output path to something like C:\Company\UpdaterLauncher\Worker\Version Where version is my AssemblyInfo.Version in string. So a new folder each time I decide to change the assembly version. I know I can change output all time.. But it's annoying. Is this possible to use something like "C:\Company\UpdaterLauncher\Worker\{AssemblyVersion}" for visual output path to interprete it and build where I want? I looked a bit in documentation and didn't found anything like

GetPathsOfAllDirectoriesAbove() cannot be evaluated after updating .Net Framework version (4.6.2 to 4.7.2)

霸气de小男生 提交于 2019-12-25 01:12:24
问题 A project I have been working on was upgraded from .NET Framework 4.6.2 to 4.7.2. On build, in a file that is not my code, I get the following error: I also see the same error in the build tab of my project properties. [ I'm at a loss- I've searched for the error and am coming up empty. Has anyone encountered and/or resolved this before? 回答1: Looks like after upgrading your build tool is changed from MSBUILD to Roslyn. Microsoft.Managed.Core.targets is Roslyn target file. if you have