Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, August 24, 2015 4:57 PM
I have a Visual Studio 2013 project in which there is a .cs file, but no matching .Designer.cs and .resx files. (The .Designer.cs and .resx files have Yield icons in Solution Explorer.) When I clean and try to rebuild the project, I see an error message: ‘Resource file “<path>.xxxx.resx” cannot be found.’
If I try to open the .resx file, the following message appears: “The item ‘xxxx.resx’ does not exist in the project directory. It may have been moved, renamed or deleted.” A search of the entire Solution confirms that neither .Designer.cs nor **.resx **exist.
I’d appreciate any suggestions on how to resolve these errors. (As a side note, there is another .cs file in the same project which has both .Designer.cs and **.resx **files without any errors.)
Thanks.
All replies (4)
Tuesday, August 25, 2015 3:29 AM ✅Answered
Hi Bontrager,
I suggest you could try to create a simple same windows form project and then check if you get same issue.
If you could see the .Designer.cs and .resx files in new windows form project, I think maybe the issue you meet with is caused by your project itself.
You could have a look at the “.csproj” file and there are many entries in this file. About the “.resx”,it should be placed in the “EmbeddedResource” section and the “Designer.cs” should be placed in the “Compile” section.
You could have a try to refer to the following demo and the right entry to reenter them. As a workaround, you could first backup the unusual .cs file code and then remove it. After cleaning and rebuilding, you could create a new .cs file with the same code.
For a resource file x.resx we will have entry like
<EmbeddedResource Include=”x.resx”>
< SubType>Designer</SubType>
< DependentUpon>x.cs</DependentUpon>
< /EmbeddedResource>
and for designer files
< Compile Include=”x.Designer.cs”> <DependentUpon>x.cs</DependentUpon></Compile>
However, if you get same issue in the new windows form project , you could try to reset the VS settings by going to Tools->Import and Export Setting and then restart your VS as admin check this issue again.
I hope it’s useful to you.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Tuesday, August 25, 2015 1:16 PM
Thanks for your suggestion. I'm working with a local copy of the app which is maintained in TFS. Might it be possible to simply delete the .Designer.cs and .resx files locally and if so, might they be properly regenerated by cleaning and rebuilding the project. I'm assuming that deleting the two files would have no impact upon the copy of the app in TFS as long as the changes are 'undone' and not saved.
Thanks.
Wednesday, August 26, 2015 3:27 AM
Hi Bontrager,
>>I'm assuming that deleting the two files would have no impact upon the copy of the app in TFS as long as the changes are 'undone' and not saved.
Yes, you are right. when we change something for this copy of the app before you did not check in the changed app into TFS, it will not impact the app in the TFS.
In addition, could you please tell me if you solve the missing .Designer.cs and .resx files?
I suggest you could share me the latest message about this issue now.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Wednesday, August 26, 2015 5:03 PM
The app has apparently been moved to a new server that I'm not yet aware of. However, when this is determined, I'll follow the suggestions that have been provided.
Thanks.