Skip to content

Commit d1e130f

Browse files
committed
We only ever support C#, so use .cs extension
Don't rely on the property being set to (potentially) something else that we don't support
1 parent 978e246 commit d1e130f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SmallSharp/SmallSharp.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<!-- This disables compilation error in VS for #: prefix -->
5-
<Features Condition="'$(MSBuildIsRestoring)' != 'true'">$(Features);FileBasedProgram</Features>
5+
<Features>$(Features);FileBasedProgram</Features>
66

77
<!-- Capture project-level properties before they are defaulted by Microsoft.Common.targets -->
88
<CustomBeforeMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)\SmallSharp.Before.props</CustomBeforeMicrosoftCSharpTargets>

src/SmallSharp/SmallSharp.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
<ItemGroup>
2323
<!-- Ensures all top-level files show up in the IDE -->
24-
<None Include="*$(DefaultLanguageSourceExtension)" Exclude="$(ActiveDebugProfile);$(ActiveFile)" />
25-
<Compile Remove="*$(DefaultLanguageSourceExtension)" />
24+
<None Include="*.cs" Exclude="$(ActiveDebugProfile);$(ActiveFile)" />
25+
<Compile Remove="*.cs" />
2626
<!-- Ensure changes we make to this file trigger a new DTB -->
2727
<UpToDateCheckBuilt Include="Properties\launchSettings.json" />
2828
<UpToDateCheckBuilt Include="$(SmallSharpPackagesProps);$(SmallSharpPackagesTargets)" />
@@ -47,7 +47,7 @@
4747

4848
<Target Name="CollectStartupFile">
4949
<ItemGroup>
50-
<StartupFile Include="*$(DefaultLanguageSourceExtension)" />
50+
<StartupFile Include="*.cs" />
5151
</ItemGroup>
5252
</Target>
5353

0 commit comments

Comments
 (0)