error MSB3552: Resource file "**/*.resx" cannot be found. [/ConsoleApp1.csproj]
问题场景:
练习在docker下操作netcore,镜像为centos7,安装完netcore sdk 2.2后,执行操作:
dotnet new console
dotnet run
出现报错:
/usr/share/dotnet/sdk/2.2./Microsoft.Common.CurrentVersion.targets(,): error MSB3552: Resource file "**/*.resx" cannot be found. [/ConsoleApp1.csproj] The build failed. Please fix the build errors and run again.
当时的目录为:
total
-rw-r--r--. root root Feb : ConsoleApp1.csproj
-rw-r--r--. root root Feb : Program.cs
-rw-r--r--. root root Dec : anaconda-post.log
lrwxrwxrwx. root root Dec : bin -> usr/bin
drwxr-xr-x. root root Feb : dev
drwxr-xr-x. root root Feb : etc
drwxr-xr-x. root root Apr home
lrwxrwxrwx. root root Dec : lib -> usr/lib
lrwxrwxrwx. root root Dec : lib64 -> usr/lib64
drwxr-xr-x. root root Apr media
drwxr-xr-x. root root Apr mnt
drwxr-xr-x. root root Feb : obj
drwxr-xr-x. root root Apr opt
dr-xr-xr-x. root root Feb : proc
dr-xr-x---. root root Feb : root
drwxr-xr-x. root root Feb : run
lrwxrwxrwx. root root Dec : sbin -> usr/sbin
drwxr-xr-x. root root Apr srv
dr-xr-xr-x. root root Feb : sys
drwxrwxrwt. root root Feb : tmp
drwxr-xr-x. root root Dec : usr
drwxr-xr-x. root root Dec : var
然后新建了一个文件夹:
mkdir testASPNETCORE
chmod testASPNETCORE
cd testASPNETCORE/
dotnet new console
The template "Console Application" was created successfully. Processing post-creation actions...
Running 'dotnet restore' on /testASPNETCORE/testASPNETCORE.csproj...
Restoring packages for /testASPNETCORE/testASPNETCORE.csproj...
Generating MSBuild file /testASPNETCORE/obj/testASPNETCORE.csproj.nuget.g.props.
Generating MSBuild file /testASPNETCORE/obj/testASPNETCORE.csproj.nuget.g.targets.
Restore completed in 155.46 ms for /testASPNETCORE/testASPNETCORE.csproj. Restore succeeded.
[root@359ed069320e testASPNETCORE]# ll
total
-rw-r--r--. root root Feb : Program.cs
drwxr-xr-x. root root Feb : obj
-rw-r--r--. root root Feb : testASPNETCORE.csproj
[root@359ed069320e testASPNETCORE]# dotnet run
Hello World!
看来好像是路径和权限问题
继续测试
mkdir testAspNetCore2
cd testAspNetCore2/
dotnet new console
The template "Console Application" was created successfully. Processing post-creation actions...
Running 'dotnet restore' on /testAspNetCore2/testAspNetCore2.csproj...
Restoring packages for /testAspNetCore2/testAspNetCore2.csproj...
Generating MSBuild file /testAspNetCore2/obj/testAspNetCore2.csproj.nuget.g.props.
Generating MSBuild file /testAspNetCore2/obj/testAspNetCore2.csproj.nuget.g.targets.
Restore completed in 158.03 ms for /testAspNetCore2/testAspNetCore2.csproj. Restore succeeded. [root@359ed069320e testAspNetCore2]# dotnet run
Hello World!
看来确定是路径问题,权限不设置777也可以.
error MSB3552: Resource file "**/*.resx" cannot be found. [/ConsoleApp1.csproj]的更多相关文章
- android学习——error opening trace file: No such file or directory (2)
1.疑惑: 程序运行起来的时候日志总是显示下面这个错误,但是不影响程序的正常进行,我是用真机来测试的,android4.4.4(API17). 02-11 14:55:03.629 15525-155 ...
- error=11, Resource temporarily unavailable
问题1:Cannot run program "/bin/ls": error=11, Resource temporarily unavailable 1 15/04/22 14 ...
- android——error opening trace file: No such file or directory (2)
1.疑惑: 程序运行起来的时候日志总是显示下面这个错误,但是不影响程序的正常进行,我是用真机来测试的,android4.4.4(API17). 02-11 14:55:03.629 15525-155 ...
- TNS-12518,TNS-12536,TNS-00506,Linux Error: 11: Resource temporarily unavailable
TNS-12518: TNS:listener could not hand off client connection TNS-12536: TNS:operation would block T ...
- rac的一次问题 ORA-01565: error in identifying file '+DATA/bol/spfilebol.ora'
昨天安装的测试环境的rac--2节点 CentOS release 6.8 (Final) SQL*Plus: Release 11.2.0.4.0 Production 今天测试突然出现问题 在ra ...
- 安卓开发error opening trace file: No such file or directory (2)报错原因
error opening trace file: No such file or directory (2) 这个问题的出现是因为运行的测试机android系统版本和项目api不一致导致. 改成一样 ...
- error in config file "/etc/rabbitmq/rabbitmq.config"
记录一次RabbitMQ配置文件配置错误 error信息: dill@ubuntu-vm:/usr/share/doc/rabbitmq-server$ sudo /usr/lib/rabbitmq/ ...
- 怎样处理“error C2220: warning treated as error - no object file generated”错误
最近用VS2010 编译ceflib开源库是出现"怎样处理"error C2220: warning treated as error - no object file gener ...
- Spring mvc 中使用ftl引用共通文件出错 FreeMarker template error: Error reading included file "/WEB-INF/ftl/common/errormessage.ftl"
初次接触spring mvc,想做一个小的练习项目,结果在ftl文件中引用其它的共通ftl文件时出错.
随机推荐
- Img与background的区别
今天做项目中,用background显示了二维码和一些文字,但显示到页面上时,二维码和图片都变得模糊了.于是将图片调整.放大,但在放大后,作为背景图片的它则显示不全,无奈之下用了backgroung- ...
- CharacterRangeTable
转载:https://github.com/jacoco/jacoco/wiki/CharacterRangeTable This page discusses a not yet available ...
- 09 - JavaSE之线程
线程 线程的基本概念 线程是一个程序里面不同的执行路径. 进程与线程的区别 每个进程都有独立的代码和数据空间(进程上下文),进程间的切换开销大. 线程可以看作轻量级的进程,同一类线程共享代码和数据空间 ...
- 面试题6:二叉树最近公共节点(LCA)《leetcode236》
Lowest Common Ancestor of a Binary Tree(二叉树的最近公共父亲节点) Given a binary tree, find the lowest common an ...
- ASP.NET Core 中的缓存
目录 缓存的基本概念 缓存原理 缓存设计 分布式缓存 Memcache 与 Redis 的比较 缓存穿透,缓存击穿,缓存雪崩解决方案 数据一致性 使用内置 MemoryCache 使用分布式缓存 Re ...
- webbrowser在html中写入内容并添加js
在html中写入内容,并添加js private void btnTestJs_Click(object sender, EventArgs e) { this.webBrowser1.Navigat ...
- 【转】Visio绘制WEB流程图的心得
一个哥们在MSN上告诉我,他们公司的交互设计师只产出流程图,并问我用什么标准评价流程图的好坏.他的说法把我彻底震了-这分工也太细了吧!也不知道该说他们那里这样是好还是不好. 不过仔细想来,我倒的确没有 ...
- 360手机新品牌5月6日公布 周鸿祎席地而坐谈AK47
今年年初,周鸿祎又做了一个艰难的决定,南下做手机!经过好一番折腾终于搞出点动静,奔驰S600L也卖了(炒作的味道很浓重),一款代号为AK47的产品被确认,就连邀请函也充分的体现了周鸿祎的老兵情节.最近 ...
- [javaSE] 类型转换(1加1等于几)
打印 ‘a’+1,输出98,解释:’a’是char类型占2个8bit,1是int类型占4个,’a’字符会被自动强制转换为int类型对应ascii码表97 打印’1’+1,输出 50,解释:’1’是ch ...
- SpringMVC 工作原理详解
本文Github开源项目https://github.com/Snailclimb/JavaGuide,只供自己学习总结无商业用途,如有侵权,联系删除 先来看一下什么是 MVC 模式 MVC 是一种设 ...