This repository was archived by the owner on Feb 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNodebridge.csproj
More file actions
45 lines (38 loc) · 1.75 KB
/
Nodebridge.csproj
File metadata and controls
45 lines (38 loc) · 1.75 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<CodeAnalysisIgnoreBuiltInRuleSets></CodeAnalysisIgnoreBuiltInRuleSets>
<PackageId>NodeBridge</PackageId>
<Version>1.0.1</Version>
<Authors>Colonelbundy</Authors>
<Company>Colonelbundy</Company>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>Copyright (c) 2020 Colonelbundy</Copyright>
<Title>NodeBridge</Title>
<Description>Brdige to node.js for serverside rendering</Description>
<RepositoryUrl>https://github.com/ColonelBundy/Nodebridge</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<ItemGroup>
<Compile Remove="example\**" />
<EmbeddedResource Remove="example\**" />
<None Remove="example\**" />
<None Remove="node_modules\**\*" />
<EmbeddedResource Include="node\dist\**\*" />
<None Include="LICENSE" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.5" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.5" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
<Target Name="NodeBuild" BeforeTargets="Build">
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js isnt installed or is not on your path VAR." />
<Message Condition="!Exists('node_modules')" Text="Installing packages" />
<Exec Condition="!Exists('node_modules')" Command="npm install --production false" />
<Exec Command="npm run build" WorkingDirectory="node/" />
</Target>
</Project>