msbuild

MSBuild.exe not found, cmd.exe

三世轮回 提交于 2019-12-12 10:24:41
问题 I recently installed Visual Studio 2017, shouldn't MSBuild.exe come with it? One of bash scripts is calling it, but can't find anything. Here is the part of build.bat that yields error (you can see the whole file here) MSBuild.exe mpc-hc.sln %MSBUILD_SWITCHES%^ /target:%BUILDTYPE% /property:Configuration="%BUILDCFG% Filter";Platform=%1^ /flp1:LogFile=%LOG_DIR%\filters_errors_%BUILDCFG%_%1.log;errorsonly;Verbosity=diagnostic^ /flp2:LogFile=%LOG_DIR%\filters_warnings_%BUILDCFG%_%1.log

.NET Core Tools: MSB3644 when importing a project

安稳与你 提交于 2019-12-12 10:10:46
问题 I made a docker container based on microsoft/dotnet:1.0-sdk . Following the guide, I executed dotnet new console and got a file dotnet.csproj . dotnet restore and dotnet run worked. Now I wanted to add my real code, which depends on YamlDotNet. So I edited the project file like this: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp1.1</TargetFramework> <EnableDefaultCompileItems>false</EnableDefaultCompileItems> </PropertyGroup>

How to downgrade nuget version of which I have on cmd?

时光毁灭记忆、已成空白 提交于 2019-12-12 10:07:08
问题 I mistakenly upgrade nuget on cmd with "nuget update -self"(which upgrade automatically to V3.5), and I want to downgrade this to old version (2.8.6) (to be the same as in current production version) how can I downgrade / uninstall nuget (and then install the old)? I searched for downgrade nuget / uninstall nuget, but found nothing. 回答1: Currently there is no installer for NuGet.exe. Different versions of NuGet can be downloaded from the NuGet site: https://dist.nuget.org/index.html Just

A solution needed for referencing Nuget packages from projects in the same solution

眉间皱痕 提交于 2019-12-12 09:55:38
问题 I have a single solution full of projects that are to be shared amongst my organization as general nuget packages. The solution is encompassed by one git repository and we have TeamCity running our builds for us, although we are not overly advanced in that we manually kick off the Teamcity builds when we are ready to generate/publish a new Nuget package for a given project in the solution, every project has its own TeamCity build configuration. When built, the projects generate nuget packages

Using Pre and Post build actions in dotnet core csproj files

走远了吗. 提交于 2019-12-12 09:51:27
问题 I am a .net-core novice and I am trying to setup a pre-build action in my csproj file. According to [1] we can use Target element to specify a pre-build step as follows: <Target Name="MyPreCompileTarget" BeforeTargets="Build"> <Exec Command="generateCode.cmd"/> </Target> However, this element does not seem to be picked up by the MSBuild tool. My complete csproj file is given below: <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp1.1</TargetFramework> <

How do I exclude a folder from a project but not from publish?

断了今生、忘了曾经 提交于 2019-12-12 09:35:10
问题 I've migrated an asp.net core project to VS2017 RC, which now supports the ability to exclude files from a project. I've excluded two folders, which added these lines to my csproj file: <ItemGroup> <Content Remove="wwwroot\dist\**" /> <Content Remove="wwwroot\lib\**" /> </ItemGroup> This works great, except now those files don't get published anymore. How do I exclude these folders from the project but still include them on publish? 回答1: The following msbuild items taken from the dotnet new

Where is full documentation about the csproj format for .net core?

ぐ巨炮叔叔 提交于 2019-12-12 09:30:01
问题 Is there a full documentation about the csproj format for .net core projects? I was looking for a way to copy files before building. After some searching I found a solution, but I can't find the documentation for this. Does it overwrite files? Are there extra options, ... <Target Name="CopyMyFiles" BeforeTargets="Build"> <Copy SourceFiles="../../someFile.js" DestinationFolder="dest/" /> </Target> I found the additions for .net core here, but there is nothing about copy. Does that mean copy is

Reason why a VS 2008 project is being rebuilt each time

南楼画角 提交于 2019-12-12 09:05:52
问题 Is there a way to find out the reason why a project is being rebuilt each time a Build Selection operation is issued in VS 2008? I've tried to even remove all dependencies from the Build\Configuration Manager (unchecked the build column for all assemblies, but the one in question). I get the same result: the assembly is rebuilt each time. I have to mention that all the dependencies are built in the same directory (there is a common Output Directory). Actually it's not very clear to me what is

Produce a .NET 4.0 library from a PCL Project where code is identical

人走茶凉 提交于 2019-12-12 08:58:59
问题 It's quite frustrating, I have a Portable Class Library (PCL) library that had to drop .NET 4.0 in the profile to have access to the right API's "in PCL land". However, these API's do exist in .NET 4.0, such that if the exact same code is in a .NET 4.0 project it compiles just fine. I want a minimal ongoing maintenance way to recompile the code in this PCL project to .net 4.0 so I can include it in a Nuget package. 回答1: With minimal conditional adjustments to the .csproj , an msbuild project

How to compile Tensor Flow with SSE and and AVX instructions on Windows?

纵然是瞬间 提交于 2019-12-12 08:47:56
问题 With the latest version of Tensor Flow now on windows, I am trying to get everything working as efficiently as possible. However, even when compiling from source I still can't seem to figure out how to enable the SSE and AVX instructions. The default process: https://github.com/tensorflow/tensorflow/tree/r0.12/tensorflow/contrib/cmake has no mention of how to do this. The only reference I have found has been using Google's Bazel: How to compile Tensorflow with SSE4.2 and AVX instructions?