-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Incorrect OutputKind in AdhocWorkspace #7
Comments
Good catch. Looks like the MSBuild property You can get the MSBuild property from the MSBuild
Be sure to check for null on the |
Didn't see projectInstance.Properties.FirstOrDefault(x => x.Name == "OutputType"); 😁 So you have to compile the project before you can figure out its output type? Can it not be inferred from the .csproj file? |
Hmm... Might be available on the |
Yup, there it is! Much better, thanks. Currently putting together a PR now. |
There we go, #8 adds |
I've noticed when loading a project into the AdHocWorkspace the
OutputKind
enum is always set toConsoleApplication
(see below as an example).Having looked through the Buildalyzer source code can't see where the project type is inferred, leading me to assume the reason it's set to
ConsoleApplication
is because it's the first property in theOutputKind
enum so defaults to that.Not being too savvy with the MSBuild API I'm wondering if you can point me in the right direction of where I'd be able to get this information so I can create a PR to fix it?
The text was updated successfully, but these errors were encountered: