scriptsharp icon indicating copy to clipboard operation
scriptsharp copied to clipboard

Upgrading Resource files from 0.7.4 to 0.7.5

Open stevehobbsdev opened this issue 13 years ago • 2 comments

I have a project created using 0.7.4 and I'm now trying to upgrade this to 0.7.5, but setting the resource files to "public" causes issues because it's trying to declare the same class twice, without being marked as 'partial' and also with different access modifiers.

Is there any work around for this? We use one project for all of our resource files, which is then referenced by other libraries, and at the moment they can no longer get access to the resource strings.

stevehobbsdev avatar Oct 22 '12 13:10 stevehobbsdev

The ability to generate internal resource classes was restored with this change: https://github.com/nikhilk/scriptsharp/commit/b0cf099ce3718758dd6d674cac65771d66f80be9#src/Core/Build/Generators/ResXCodeBuilder.cs

This was after 0.7.4, so the fix is in the 0.8 preview.

nikhilk avatar Oct 22 '12 16:10 nikhilk

Ok, thanks. Unfortunately I'm not in a position to upgrade yet so I can't confirm whether it fixes my issue or not, but I'm assuming that it will.

stevehobbsdev avatar Oct 23 '12 16:10 stevehobbsdev