scriptsharp icon indicating copy to clipboard operation
scriptsharp copied to clipboard

VS 2017 15.5.0 Preview 2 Breaks ScriptSharp Compilation

Open michaelaird opened this issue 7 years ago • 7 comments

FYI:

It looks like the latest preview build of VS 2017 breaks Script# compilation due to mscorlib conflict resolution.

I've logged a bug here: https://developercommunity.visualstudio.com/content/problem/138986/1550-preview-2-breaks-scriptsharp-compilation.html . Please add comments and upvote there.

michaelaird avatar Oct 26 '17 15:10 michaelaird

Thanks for the heads up - I've voted

scottdurow avatar Oct 26 '17 15:10 scottdurow

Do you think compiling the Script# mscrolib to a greater version than 4.0 would work around this issue?

scottdurow avatar Oct 26 '17 16:10 scottdurow

Possibly. That might work for individuals who are willing to do their own builds but given this project has essentially been "done" for several years, I think it's unlikely that an updated package will be released. (As an aside, we've been migrating our Script# to TypeScript using the excellent Rosetta project)

michaelaird avatar Oct 26 '17 16:10 michaelaird

Do you have any info on how to get Rosetta going?

scottdurow avatar Oct 26 '17 17:10 scottdurow

@scottdurow Let's take this offline. Email me at michael at campbrain.com and I can give you some pointers.

michaelaird avatar Oct 26 '17 17:10 michaelaird

This should be solved as workaround was provided:

This can probably be resolved by setting the following property in the MSBuild project file:

<DisableHandlePackageFileConflicts>true</DisableHandlePackageFileConflicts>

janis-veinbergs avatar Nov 13 '19 08:11 janis-veinbergs

@michaelaird Rosetta sounds intriguing. I tried and succeeded generating .d.ts files (after removing some empty namespace attributes [ScriptNamespace("")]). Could you look into https://github.com/scottdurow/SparkleXrm/issues/452 and provide some feedback please?

janis-veinbergs avatar Feb 21 '22 10:02 janis-veinbergs