daveaglick / Scripty

Tools to let you use Roslyn-powered C# scripts for code generation
MIT License
621 stars 69 forks source link

Visual studio extesion no longer available + does not work in .net core 2.1, 2.2 #135

Open jaroslav-rfe opened 5 years ago

jaroslav-rfe commented 5 years ago

Scripty could be fantastic replacement of T4 since T4 in .net core is not able to handle references but it does not work and seems abandoned for years. First I tried the basic steps mentioned in documentation but documentation shows just pieces of code not clearly stating where it has been taken form, there is no working sample. Createing csx and csx.cs exactly as shown + referencing scripty.core and scripty.msbuild produces only description.txt but not the cs file, it fails during build with error "System.InvalidOperationException: Sequence contains no elements in .nuget\packages\scripty.msbuild\0.7.4\build\Scripty.MsBuild.targets" + there stays some temporary rewrite.tmp file after that. Its quite unclear what ScriptContainer class is trying to do and since Scripty visual studio extension is not available on vs marketplace there is no way how to debug it. Not mentioning there is zero information about how to resolve refences to nuget packages used in the project which are being used inside csx.cs class. its half-work.