Skip to content

Commit 639a9e8

Browse files
kzuCopilot
andcommitted
Add default project launch profile
Ensure generated launchSettings.json includes Visual Studio's default project-named profile alongside SmallSharp file profiles. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c85bc45 commit 639a9e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/SmallSharp/SmallSharp.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@
194194
<SortItems Items="@(StartupFile)">
195195
<Output TaskParameter="SortedItems" ItemName="SortedStartupFile" />
196196
</SortItems>
197+
<JsonPoke ContentPath="$(MSBuildProjectDirectory)\Properties\launchSettings.json"
198+
Query="$.profiles['$(MSBuildProjectName)'].commandName"
199+
Value="$(MSBuildProjectName)" />
197200
<JsonPoke ContentPath="$(MSBuildProjectDirectory)\Properties\launchSettings.json"
198201
Query="$.profiles['%(SortedStartupFile.Filename)%(SortedStartupFile.Extension)'].commandName"
199202
Value="Project" />

0 commit comments

Comments
 (0)