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

Allow selection of .csproj for dotnet commands #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Crashdummyy
Copy link

Most projects often contain more than one csproj file and remain somewhere at the solution level with their cwd.
This makes options 5-7 fail a lot ( at least in my case ).

This extends the current behavior by providing a filepicker.
image

@Crashdummyy
Copy link
Author

Crashdummyy commented Jul 3, 2024

It's more expensive but we could reduce the selections for the dotnet run command ( or all of them ? ) somewhat further by only providing those csproj. that are actually executable.

We have to maintain a list of the sdks tho which is why I didnt implement it this way.

We either have to look for an existing OutputType node

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
  </PropertyGroup>

</Project>

Or a sdk target that actually supports executing, eg <Project Sdk="Microsoft.NET.Sdk.Web">

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

Successfully merging this pull request may close these issues.

1 participant