9drocsid_emoJ1
How do I using Roslyn with correct version of .net
How do I using Roslyn with correct version of .net
Hello I'm new to C# and roslyn usage, I'm trying to use roslyn's code analysis functionality to open a
.sln
file, I'm using code like below, however when I run it to open this .sln, it pop up a strange error like this:
However, if I use my code to open itself's .sln file everything seems to be fine, so I suspect it's a .Net Version problem, but with my limited experience, I have no idea how to get it right, is there some version number I need to set right in .sln? I attach my .sln and .csproj files in attach zip file, where "Migration" is my own project's sln file and "Wpf" is the project I try to open with my code below
3 replies