msbuild

MSB3644 error when building with .net 5.0

泪湿孤枕 提交于 2021-01-05 06:11:13
问题 After installing .net 5.0 dotnet-cli works, but after creating new project dotnet build fails with error error MSB3644: The reference assemblies for framework “.NETFramework,Version=v5.0” were not found . 回答1: Make sure the environment variable MSBuildSdksPath equals <dotnet install path>\sdk\5.0.100-preview.3.20216.6\Sdks 来源: https://stackoverflow.com/questions/61745089/msb3644-error-when-building-with-net-5-0

MSB3644 error when building with .net 5.0

ぐ巨炮叔叔 提交于 2021-01-05 06:10:28
问题 After installing .net 5.0 dotnet-cli works, but after creating new project dotnet build fails with error error MSB3644: The reference assemblies for framework “.NETFramework,Version=v5.0” were not found . 回答1: Make sure the environment variable MSBuildSdksPath equals <dotnet install path>\sdk\5.0.100-preview.3.20216.6\Sdks 来源: https://stackoverflow.com/questions/61745089/msb3644-error-when-building-with-net-5-0

jenkins自动化工具使用教程(转)

妖精的绣舞 提交于 2021-01-03 14:18:49
自动化构建、测试、部署、代码检测越来越重要。主要有一下几点原因 企业做大,项目变多,多端支持(web,h5,小程序等) 微服务提倡高内聚低耦合,项目因拆分变多 DevOps自动化运维流行 集群化,高可用部署方案 避免人工操作出现的错误 集成管理系统,实现提交发布、发布审批、发布等UI可视化操作 等等原因,学习使用jenkins实现自动化作业非常有必要。这是我学习过程中整理的资料,分享给大家。 欢迎向我推荐更好的资料和讨论关于jenkins的问题。 目录 一、 安装 1) Jenkins环境 2) Jenkins安装插件因网络问题报错处理方案 3) Jenkins在url中关闭和重启. 4) 如何将Jenkins集成到其他系统 二、 常见设置 1) Jenkins 英文切换成中文 2) Jenkins 中文乱码 3) 环境变量、脚本变量使用 4) 查看job执行时的历史环境变量 5) 去掉JENKINS的首页警告 6) 定时构建 三、 常用工具cli 1) git 2) 脚本 a) shell b) bat 3) xcopy 4) 7zip(7z) 四、 安全设置 1) 常规安全设置 2) 用户权限管理 五、 Dotnet 程序编译发布 1) 环境准备 2) Msbuild插件 + webdeploy 3) 使用msbuild命令行 六、 备份、回滚 1) jenkins 配置

How to include pre-release packages with MSBuild restore target

自闭症网瘾萝莉.ら 提交于 2021-01-03 05:34:24
问题 This question is specific to MSBuild 15.1+ (Visual Studio 2017) and to PackageReference , which is the new way Nuget is fully integrated within MSBuild . In my continuous integration script, I've got something like: MSBuild.exe /t:Restore MySolution.sln /p:RestoreConfigFile=NuGet.config One of the csproj file contains: <PackageReference Include="MyPackageA"> <Version>1.2.*</Version> </PackageReference> MyPackageA is an internal package and I would like nuget to resolve the reference to the

Is there a way to exclude project/s from solution in VS using command-line?

倖福魔咒の 提交于 2020-12-30 07:36:41
问题 I have a solution contains 10 projects and would like to exclude 1 or 2 projects when building the solution. The issue is that I'm building the solution in command line and would like to run it once partially (not all projects) and the next time it should run as is - all projects will be built. (I'm using MSBuild.exe) Does any of you know of such a way to do it using command line (and not using VS interface)? Are there any command line arguments to exclude these projects? 回答1: You can use the

Is there a way to exclude project/s from solution in VS using command-line?

两盒软妹~` 提交于 2020-12-30 07:35:17
问题 I have a solution contains 10 projects and would like to exclude 1 or 2 projects when building the solution. The issue is that I'm building the solution in command line and would like to run it once partially (not all projects) and the next time it should run as is - all projects will be built. (I'm using MSBuild.exe) Does any of you know of such a way to do it using command line (and not using VS interface)? Are there any command line arguments to exclude these projects? 回答1: You can use the

Is there a way to exclude project/s from solution in VS using command-line?

回眸只為那壹抹淺笑 提交于 2020-12-30 07:34:52
问题 I have a solution contains 10 projects and would like to exclude 1 or 2 projects when building the solution. The issue is that I'm building the solution in command line and would like to run it once partially (not all projects) and the next time it should run as is - all projects will be built. (I'm using MSBuild.exe) Does any of you know of such a way to do it using command line (and not using VS interface)? Are there any command line arguments to exclude these projects? 回答1: You can use the

Occasionally occurring MSBUILD : error MSB3428:

Deadly 提交于 2020-12-30 03:38:51
问题 I have a PowerShell script that does the following: Upgrades an old Visual Studio solution using devenv.exe. Builds the upgraded Visual Studio solution using MSBuild. If I run this script, I get an error stating "MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere." What is strange to me

Visual Studio add pre-build event that always runs (C# project)

非 Y 不嫁゛ 提交于 2020-12-29 08:47:43
问题 In my project, I am running an external tool to update some binary files. These files are included in the project as "content". At the moment the tool is set to run during "pre-build event" in C# project properties. Unfortunately, this event is only executed if the project is out of date, which is not what I need. I am working around this by always using "rebuild" instead of "build" on my project, but this is tedious and slow. I need to execute this tool always, irrespective of whether a

gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1

走远了吗. 提交于 2020-12-29 04:06:01
问题 When I run npm install , I face the following error. I am not able to find the problem. I need some help in finding this issue. d:\testing\node-sample-module\node_modules\ffi\node_modules\ref\node_modules\nan\nan_implementation_pre_12_inl.h(112): error C2668: 'v8::FunctionTemplate::New' : ambiguous call to overloaded function [d:\TESTING\node-sample-module\node_modules \ffi\node_modules\ref\build\binding.vcxproj] C:\Users\SELVA\.nw-gyp\0.8.5\deps\v8\include\v8.h(3344): could be 'v8::Local<v8: