1 Star 0 Fork 1

JamesYeung / ng-alain-aspnetcore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ng-alain-aspnetcore.csproj 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
JamesYeung 提交于 2018-01-05 01:14 . refactor(): 修改目录结构
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
</ItemGroup>
<Target Name="DebugRunNg" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('wwwroot\assets') ">
<!-- 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." />
<!-- In development, the dist files won't exist on the first run or when cloning to
a different machine, so rebuild them if not already present. -->
<Message Importance="high" Text="Performing first-run Ng build..." />
<Exec Command="ng build --output-path=wwwroot --output-hashing none" />
</Target>
<Target Name="PublishRunNg" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec Command="npm install" />
<Exec Command="ng build --prod --output-path=wwwroot --output-hashing none" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="wwwroot\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
<!-- <Target Name="CleanDist" AfterTargets="Clean">
<ItemGroup>
<FilesToDelete Include="wwwroot\dist\**; wwwroot\assets\**" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
<RemoveDir Directories="wwwroot\dist; wwwroot\assets" />
</Target> -->
</Project>
HTML
1
https://gitee.com/JamesYeung/ng-alain-aspnetcore.git
git@gitee.com:JamesYeung/ng-alain-aspnetcore.git
JamesYeung
ng-alain-aspnetcore
ng-alain-aspnetcore
master

搜索帮助