
.net
intelrain
这个作者很懒,什么都没留下…
展开
-
【.net C#】.net core 安装
1、查看本地安装了多少.net core 版本dotnet --list-sdks2、下载.net core 的安装版本下载网址https://dotnet.microsoft.com/download/dotnet-core/3.13、使用下载的dotnet-sdk-3.1.201-win-x64.exe进行安装4、项目使用中会报错:msbuild版本...原创 2020-04-10 14:53:58 · 37443 阅读 · 0 评论 -
.net core 自动化测试覆盖率的统计方法
使用技术:dotnet cover第一步:从gitlab上下载项目代码,并且运行相关的前端环境,使项目本地运行ok。第二步:安装dotnet cover链接:https://pan.baidu.com/s/1dV6SCHNb2BIdoPGZT_m3lQ提取码:1yo1安装完成后,会在VS中,自动生成插件第三步:dotnet cover的使用选择的文件...原创 2020-02-24 17:34:10 · 37473 阅读 · 0 评论 -
linux上降低dotnet sdk的版本:移除
原创 2020-01-17 11:04:44 · 94651 阅读 · 0 评论 -
【jenkins】NuGet.targets(123,5): error : Unable to obtain lock file access on '/tmp/NuGetScratch/lock/
jenkins配置的.net项目的部署。在dotnet publish这一步时报错解决方法:在jenkins的服务器上,删除lock这个文件夹。cd/tmp/NuGetScratchrm -rf lock即可解决。产生的原因:没有排查出来。...原创 2019-10-31 11:13:05 · 1412 阅读 · 0 评论 -
【sonar】sonar扫描.net项目 jenkins集成
步骤如下1、命令行安装dotnet tool install --global dotnet-sonarscanner --version 4.7.02、版本信息如下https://www.nuget.org/packages/dotnet-sonarscanner/可以看到最新版本是4.7.1dependencies这里显示的是 .NetCoreApp 2.1我的理...原创 2019-10-24 17:59:37 · 1283 阅读 · 0 评论 -
【sonar】windows环境,dotnet集成到jenkins后,错误信息处理
问题一:命令改成"C:\Program Files\dotnet\dotnet.exe"问题二:是由于NuGet.Config 没有配置对导致的原本只有第一行需要加第二行,公司的私服C:\Users\Administrator\AppData\Roaming\NuGet...原创 2019-10-23 15:57:03 · 20640 阅读 · 0 评论 -
jenkins部署.net项目时报错:error NU1101:Unable to find package WLYD.Core
执行dotnet publish时报错疑问:jenkins所在的linux服务器上,已经配置了nuget.config并且其他的项目运行时正常,只有这个项目报了错。这个项目在linux服务器上运行此命令不报错,但是在jenkins构建时要报错。这个项目的csproj中,配置如下:引用nuget包其他不报错的项目的csproj配置如下:引用本解决方案中的项目解...原创 2019-10-15 11:41:46 · 2154 阅读 · 0 评论