scriptsharp icon indicating copy to clipboard operation
scriptsharp copied to clipboard

Hi Nikhil, I am simply trying to add a resource file to my Script # solution and its throwing me many compilation error. How to do that? It is not able to identify many assemblies.

Open SaktiEricsson opened this issue 11 years ago • 3 comments

SaktiEricsson avatar Jan 24 '14 15:01 SaktiEricsson

Can you provide more details about what you're doing? What kind of resource are you adding? You might need to drop it in a folder which gets copied to the bin folder by the compiler.

Remember that you can only reference Scriptsharp assemblies.

theoutlander avatar Jan 24 '14 21:01 theoutlander

Did you use the .resx template from within the Script# folder in the Add Item dialog? That template comes with a resx file that is associated with the script# code-generator rather than the default .net code generator that produces c# code containing references that don't apply to the script# world. Hope that helps.

nikhilk avatar Jan 28 '14 00:01 nikhilk

Thanks a lot Nikhil. Yes it did solve the problem.

On Tue, Jan 28, 2014 at 6:18 AM, Nikhil Kothari [email protected]:

Did you use the .resx template from within the Script# folder in the Add Item dialog? That template comes with a resx file that is associated with the script# code-generator rather than the default .net code generator that produces c# code containing references that don't apply to the script# world. Hope that helps.

— Reply to this email directly or view it on GitHubhttps://github.com/nikhilk/scriptsharp/issues/410#issuecomment-33440788 .

Sakti Ranjan Kar IT Consultant

SaktiEricsson avatar Jan 28 '14 05:01 SaktiEricsson