Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support csproj #9

Open
phrohdoh opened this issue Feb 1, 2017 · 9 comments
Open

Support csproj #9

phrohdoh opened this issue Feb 1, 2017 · 9 comments

Comments

@phrohdoh
Copy link

phrohdoh commented Feb 1, 2017

project.json is on its way out of the door while (the newly-improved) csproj is becoming the default.

@josephwoodward
Copy link
Owner

Yes, this is on my list of things to do over the next few days. Support for both project.json and .csproj should hopefully be in the next release.

@josephwoodward
Copy link
Owner

This is a real blocker right now, MSBuildWorkspaces does not support .NET Standard and there's no other approach, so I'm not sure how I'm going to tackle this. Could really do with some advice from someone with a far greater knowledge of Roslyn than me.

@phrohdoh
Copy link
Author

Why does .NET Standard need to be supported by a tool that automates compilation of a project then runs ildasm?

@josephwoodward
Copy link
Owner

josephwoodward commented Feb 24, 2017

Unfortunately it's a little more complicated than what (not to mention ildasm is Windows only, where as this extension works on all platforms). What's actually happening is under the bonnet the extension is using Roslyn to compile just the file you're trying to extract the IL from.

In order to this it uses the workspace to extracting all that file's dependencies in the process.

I'm sure there's a way around it, I just need to investigate how.

@josephwoodward
Copy link
Owner

I've actually got this open as a StackOverflow question too.

@phrohdoh
Copy link
Author

What I don't understand is why you need .NET Standard support to use the MSBuild Roslyn workspace. Do you have a gitter or IRC channel?

@josephwoodward
Copy link
Owner

Because the extension loads the project then includes all references (dlls, NuGet packages) so all types are available. I can do that manually but the workspace API makes it easy. It's possible that there's another way that I'm not aware of? Do you know something I don't?

@josephwoodward
Copy link
Owner

Here's a GitHub issue about the discussion of making the MSBuildWorkspace support .NET Standard:
dotnet/roslyn#17439
TLDR; it's a little while away. In the mean time the extension doesn't work with .csproj :(

@replicadse
Copy link

As the other Issues are closed now or their state is undeterminable due to them being open since 2017, could you Kindly provide any information when or if the .csproj support will be continued?
That would be awesome since I'd like to use your extension for working on my bachelor thesis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants