2021-07-29 22:45:47 +08:00
<Project Sdk= "Microsoft.NET.Sdk" >
<PropertyGroup >
<TargetFramework > netstandard2.0</TargetFramework>
<LangVersion > latest</LangVersion>
<Nullable > enable</Nullable>
<JavaScriptTestRoot > tests\</JavaScriptTestRoot>
<JavaScriptTestFramework > Mocha</JavaScriptTestFramework>
<GenerateProgramFile > false</GenerateProgramFile>
</PropertyGroup>
<Target Name= "DebugEnsureNodeEnv" BeforeTargets= "Build" Condition= " '$(Configuration)' == 'Debug' And !Exists('$(ProjectDir)node_modules') " >
<!-- Ensure Node.js is installed -->
<Exec Command= "node --version" ContinueOnError= "true" >
<Output TaskParameter= "ExitCode" PropertyName= "ErrorCode" />
</Exec>
<Error Condition= "'$(ErrorCode)' != '0'" Text= "Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance= "high" Text= "Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory= "$(ProjectDir)" Command= "npm install" />
<Exec WorkingDirectory= "$(ProjectDir)" Command= "npm run test-ts" />
</Target>
<Target Name= "DebugRunGulp" BeforeTargets= "DebugEnsureNodeEnv" Condition= " '$(Configuration)' == 'Debug' And Exists('$(ProjectDir)node_modules') " >
<Exec WorkingDirectory= "$(ProjectDir)" Command= "npm run test-ts" />
</Target>
<ItemGroup >
<Compile Remove= "node_modules\**" />
<EmbeddedResource Remove= "node_modules\**" />
<None Remove= "node_modules\**" />
</ItemGroup>
<ItemGroup >
<PackageReference Include= "Microsoft.JavaScript.UnitTest" Version= "1.5.30526.3-beta" >
<PrivateAssets > all</PrivateAssets>
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2023-09-15 22:36:45 +08:00
</PackageReference>
<PackageReference Include= "Microsoft.VisualStudio.Utilities.Internal" Version= "16.3.42" />
2021-07-29 22:45:47 +08:00
</ItemGroup>
<ItemGroup >
<Folder Include= "coverage\" />
</ItemGroup>
</Project>