问题场景:

练习在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]的更多相关文章

  1. android学习——error opening trace file: No such file or directory (2)

    1.疑惑: 程序运行起来的时候日志总是显示下面这个错误,但是不影响程序的正常进行,我是用真机来测试的,android4.4.4(API17). 02-11 14:55:03.629 15525-155 ...

  2. error=11, Resource temporarily unavailable

    问题1:Cannot run program "/bin/ls": error=11, Resource temporarily unavailable 1 15/04/22 14 ...

  3. android——error opening trace file: No such file or directory (2)

    1.疑惑: 程序运行起来的时候日志总是显示下面这个错误,但是不影响程序的正常进行,我是用真机来测试的,android4.4.4(API17). 02-11 14:55:03.629 15525-155 ...

  4. 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 ...

  5. 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 ...

  6. 安卓开发error opening trace file: No such file or directory (2)报错原因

    error opening trace file: No such file or directory (2) 这个问题的出现是因为运行的测试机android系统版本和项目api不一致导致. 改成一样 ...

  7. error in config file "/etc/rabbitmq/rabbitmq.config"

    记录一次RabbitMQ配置文件配置错误 error信息: dill@ubuntu-vm:/usr/share/doc/rabbitmq-server$ sudo /usr/lib/rabbitmq/ ...

  8. 怎样处理“error C2220: warning treated as error - no object file generated”错误

    最近用VS2010 编译ceflib开源库是出现"怎样处理"error C2220: warning treated as error - no object file gener ...

  9. Spring mvc 中使用ftl引用共通文件出错 FreeMarker template error: Error reading included file "/WEB-INF/ftl/common/errormessage.ftl"

    初次接触spring mvc,想做一个小的练习项目,结果在ftl文件中引用其它的共通ftl文件时出错.

随机推荐

  1. 在webpack中配置vue.js

    在webpack中配置vue.js 这里有两种在webpack中配置vue.js的方法,如下: 1.在main.js中引入vue的包: index.html: <!DOCTYPE html> ...

  2. Intellij-插件安装-安装CodeGenerator插件并且添加Builder模板

    Intellij IDEA 2018.1.2版本 CodeGenerator插件地址:https://github.com/lotabout/CodeGenerator/releases 步骤一:安装 ...

  3. Nginx的几个常用配置和技巧

    文章列举了几个Nginx常见的,实用的,有趣的配置,希望看过之后能说一句:学到了! 一个站点配置多个域名 server { listen 80; server_name ops-coffee.cn b ...

  4. jdk内置类javax.imageio.ImageIO支持的图片处理格式

    执行这段代码输出支持的图片处理格式 String readFormats[] = ImageIO.getReaderFormatNames(); String writeFormats[] = Ima ...

  5. 用css实现在横线中间插入文字

    在一些登录或者注册界面中常常可看到,一个大框框上面的横线中有插入文字,大概示意图如下: 这种现象其实是相对位置作用的结果,可以通过相对定位,是某元素恰好出现在div的边框上. position: re ...

  6. Linux-(ps,grep)

    grep命令 1.命令格式: grep [option] pattern file 2.命令功能: 用于过滤/搜索的特定字符.可使用正则表达式能多种命令配合使用,使用上十分灵活. Linux系统中gr ...

  7. SQL更改表架构

    修改SQL架构: ALTER SCHEMA 新架构 TRANSFER 旧架构.对象名称

  8. Spark2.3.1中用各种模式来跑官方Demo

    1  使用单机local模式提交任务 local模式也就是本地模式,也就是在本地机器上单机执行程序.使用这个模式的话,并不需要启动Hadoop集群,也不需要启动Spark集群,只要有一台机器上安装了J ...

  9. Django请求响应对象

    请求与响应对象 HttpRequest HttpRequest存储了客户请求的相关参数和一些查询方法. path 请求页面的全路径,不包括域名-例如, "/hello/". met ...

  10. Linux skbuff注释笔记

    SKB结构定义   /usr/src/linux/include/linux/skbuff.h sk_buff_head: struct sk_buff_head { //SKB的头结点 /* The ...