dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.6k stars 1.03k forks source link

error MSB3103: Invalid Resx file #9110

Closed kulak closed 1 month ago

kulak commented 6 years ago

Steps to reproduce

build on windows with command

dotnet build

It appears that I have resolved the error after I renamed "C#" directory to be "CSharp".

Expected behavior

Code should compile.

Actual behavior

Error message:

C:\Users\builder\projs\MowocHe\mdapi\C#\Itron.Mdapi.Cosem\DLMS\DLMSCommStrings.resx : error MSB3103: Invalid Resx file.
Could not find file 'C:\Users\builder\projs\MowocHe\mdapi\C'. 
[C:\Users\builder\projs\MowocHe\mdapi\C#\Itron.Mdapi.Cosem\Itron.Mdapi.Cosem.Core20.csproj]
0 Warning(s)
1 Error(s)

Environment data

dotnet --info output:

.NET Command Line Tools (2.1.4)

Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.4\

Microsoft .NET Core Shared Framework Host

Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54

livarcocc commented 6 years ago

Could you share a repro with us? If you have a repo on github we could clone and try this out it would be perfect. Otherwise, details on how we could reproduce the problem ourselves should work.

kulak commented 6 years ago

I am sorry, it is a private Itron project and uses private DLMS/COSEM library. My best instructions to reproduce is to create .NET core 2 project and to refer a resource. Make sure your resource is nested inside directory with hash character. Mine was C#.

I was able to verify that issue is resolved once directory C# was replaced with CSharp. No other change was made.

github-actions[bot] commented 2 months ago

Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.

github-actions[bot] commented 1 month ago

This issue will now be closed since it has been labeled 'stale' without activity for 30 days.