Scripty icon indicating copy to clipboard operation
Scripty copied to clipboard

Empty Roslyn project in net standard library.

Open salmelo opened this issue 7 years ago • 8 comments

Using the MSBuild task in a .NET Standard class library, Project.Analysis.Documents is empty, as far as I can tell there's nothing in the Roslyn project at all.

Dunno if this is anything on Scripty's end or if anything can be done about it, but figured it was worth making known.

salmelo avatar Apr 11 '17 06:04 salmelo

If there's stuff in the project, it should be in the Roslyn workspace, and Roslyn shouldn't have any issues dealing with .NET Standard/Core projects. In other words, there should be documents in the collection.

Can you provide any more information? What does the project structure look like?

daveaglick avatar Apr 25 '17 19:04 daveaglick

Any updates on this? Did you get it figured out?

daveaglick avatar Jul 04 '17 22:07 daveaglick

Hi,

I came here expecting this exact kind of bug report. My understanding is that Roslyn is not capable of working with SDK-style csproj. See here. It has blocked me from updating my own software libraries to work correctly in the new world.

kentcb avatar Jul 10 '17 07:07 kentcb

Yeah, currently a blocker for me on my IL Viewer for VS Code too :(

josephwoodward avatar Aug 11 '17 09:08 josephwoodward

Hmm...I wonder if the custom workspace the Mono folks built for VS Mac would work

daveaglick avatar Aug 11 '17 11:08 daveaglick

What custom workspace did they build? I'd be interested in trying it. Would love to get my IL Viewer working again.

josephwoodward avatar Aug 11 '17 16:08 josephwoodward

@JosephWoodward I'm going off of this comment: https://github.com/dotnet/roslyn/issues/20275#issuecomment-309100824 Apparently OmniSharp also has it's own workspace (a little further down). Been meaning to check either/both of those out.

Scripty has other issues with MSBuild workspace like that it can't be used as an MSBuild task because MSBuild won't let you nest execution. Would love to get the workspace (and thus Scripty itself) in-proc with the build task.

daveaglick avatar Aug 11 '17 19:08 daveaglick

@daveaglick That's right, OmniSharp have their own adhoc workspace that they've built from the ground up which resolves all dependencies. It's pretty comprehensive. I've considered trying to build one but having looked at it I wouldn't know where to start.

josephwoodward avatar Aug 12 '17 07:08 josephwoodward