forked from aspnet/AspLabs
/
SampleApp.csproj
27 lines (23 loc) · 1.25 KB
/
SampleApp.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>WinExe</OutputType>
<LangVersion>7.3</LangVersion>
<ComponentsVersion>3.0.0-preview3-19153-02</ComponentsVersion>
<ComponentsElectronVersion>0.1.0-alpha.19165.3</ComponentsElectronVersion>
<DefaultItemExcludes>${DefaultItemExcludes};node_modules\**;package-lock.json</DefaultItemExcludes>
<RestoreAdditionalProjectSources>
https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json;
</RestoreAdditionalProjectSources>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Components.Electron" Version="$(ComponentsElectronVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.Server" Version="$(ComponentsVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.Build" Version="$(ComponentsVersion)" />
</ItemGroup>
<Target Name="EnsureNpmRestored" BeforeTargets="CoreBuild" Condition="!Exists('node_modules')">
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec Command="npm install" />
</Target>
</Project>