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文件时出错.
随机推荐
- springboot打包成jar包后找不到xml,找不到主类的解决方法
springboot打包成jar包后找不到xml,找不到主类的解决方法 请首先保证你的项目能正常运行(即不打包的时候运行无误),我们在打包时经常遇到如下问题: springboot打包成jar包后找不 ...
- Postman—前置请求脚本
前言 在前面的文章中已经说到了,在Postman中可以编写以下两种脚本: 前置请求脚本 测试脚本 这两种脚本的运行时机都不一样,在上一篇<Postman—脚本介绍>中已经详细的进行了介绍. ...
- Android 开发工具类 32_通过 HTTP 协议实现文件上传
完成像带有文件的用户数据表单的上传,而且可以上传多个文件,这在用户注册并拍照时尤其有用. import java.io.BufferedReader; import java.io.ByteArray ...
- 我的zsh 配置
# If you come from bash you might have to change your $PATH.# ZSH的环境变量export ZSH=/Users/lorialex/.oh ...
- 面试题-----求单链表的倒数第k个节点
#include <iostream> using namespace std; struct node{ int value; struct node *next; }; struct ...
- in运算符
//in运算符(用来判断一个属性是否在对象里面)var obj={"username":"hh"};console.log("username&quo ...
- Linux 64位 CentOS下安装 Docker 容器,启动、停止
一.Docker简介 Docker 提供了一个可以运行你的应用程序的封套(envelope),或者说容器,是轻量级的“容器引擎+映像仓库”,在LXC(linux轻量级容器)的基础上构建,可以运行任何应 ...
- 追踪MySQL中长时间运行的事务
接上一篇,未提交的事务导致锁等待,锁住一段时间后又提交了(也可能是回滚),锁释放业务继续运行.那么我们如何知道产生锁的事务是在跑什么SQL? 今天讲的这个工具,就可以通过监听3306端口的数据,把每个 ...
- [转]SQL Server如何启用xp_cmdshell组件
本文转自:https://www.cnblogs.com/atree/p/SQL_SERVER_xp_cmdshell.html 错误描述]: SQL Server阻止了对组件‘xp_cmdshell ...
- 淺談 Entity 的概念
延續上一篇文章<Drupal Commerce 概念架構>,本來打算要繼續講 Commerce 與 Views 整合的主題.不過由於這個主題牽涉到 Views 中的 Relationshi ...