问题场景:

练习在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. centos6 和 centos7 网络配置

    centos 6配置,1 vim /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0" BOOTPROTO="st ...

  2. php 按照二位数组中某个指定的字段进行排序

    /** * 按照二维数组中某个指定的某个字段进行排序 * @param $array 需要被排序的数组 * @param $flag 排序的标志 1,SORT_DESC 降序 2,SORT_ASC 升 ...

  3. Android之ListView的使用技巧

    之前有总结过关于ListView的一些优化技巧,比如它的ConvertView的复用Recycler机制,使用ViewHolder来提高列表条目的findById的效率,以及宽高的设置确定值的好处,如 ...

  4. Spark源码的编译过程详细解读(各版本)(博主推荐)

    不多说,直接上干货! 说在前面的话   重新试多几次.编译过程中会出现下载某个包的时间太久,这是由于连接网站的过程中会出现假死,按ctrl+c,重新运行编译命令.  如果出现缺少了某个文件的情况,则要 ...

  5. IDEA里运行程序时出现Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2:compile(default) on Project DataFusion:wrap:org.apache.commons...错误的解决办法(图文详解)

    不多说,直接上干货! 问题详情 比如我们习惯在IDEA里打包用mvn clean package 在Scala IDEA for eclipse里出现mvn clean compile assembl ...

  6. WPF开发的彩票程序(练手好例子)

    前言 WPF是.NET最新的界面开发库,开发界面非常灵活!但是学习WPF难度也非常大. 应朋友之邀,编写了一个小程序.程序虽小,五脏俱全,WPF开发的灵活性可窥见一斑. 对于新手学习有很好的借鉴意义, ...

  7. 深入理解Java虚拟机:垃圾收集器与内存分配策略

    目录 3.2 对象已死吗 判断一个对象是否可被回收 引用类型 finalize() 回收方法区 3.3. 垃圾收集算法 1.Mark-Sweep(标记-清除)算法 2.Copying(复制)算法 3. ...

  8. double类型转换为int类型四舍五入工具类

    package com.qiyuan.util; import java.math.BigDecimal; import java.text.DecimalFormat; public class G ...

  9. Java中的数据验证

    原文链接:https://www.cuba-platform.com/blog/2018-10-09/945 翻译:CUBA China CUBA-Platform 官网 : https://www. ...

  10. Extjs相关知识点梳理

      store是一个为Ext器件提供record对象的存储容器,行为和属性都很象数据表 方法:不列举继承来的方法 Store( Object config ) 构造,config定义为{ autoLo ...