TEAMModelOS.SmartClass.csproj 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Project Sdk="Microsoft.NET.Sdk.Web">
  2. <PropertyGroup>
  3. <TargetFramework>netcoreapp2.2</TargetFramework>
  4. <UserSecretsId>a25fbaf0-43f2-412e-a606-4a19c5766202</UserSecretsId>
  5. </PropertyGroup>
  6. <ItemGroup>
  7. <Compile Remove="ClientApp\components\新文件夹1\**" />
  8. <Compile Remove="Providers\**" />
  9. <Compile Remove="wwwroot\dist\**" />
  10. <Content Remove="ClientApp\components\新文件夹1\**" />
  11. <Content Remove="Providers\**" />
  12. <Content Remove="wwwroot\dist\**" />
  13. <EmbeddedResource Remove="ClientApp\components\新文件夹1\**" />
  14. <EmbeddedResource Remove="Providers\**" />
  15. <EmbeddedResource Remove="wwwroot\dist\**" />
  16. <None Remove="ClientApp\components\新文件夹1\**" />
  17. <None Remove="Providers\**" />
  18. <None Remove="wwwroot\dist\**" />
  19. </ItemGroup>
  20. <ItemGroup>
  21. <PackageReference Include="Microsoft.AspNetCore.App" />
  22. </ItemGroup>
  23. <ItemGroup>
  24. <!-- Files not to show in IDE -->
  25. <None Remove="ClientApp\utils\.editorconfig" />
  26. <None Remove="ClientApp\utils\bus.js" />
  27. <None Remove="ClientApp\view\syllabus\login.vue" />
  28. <None Remove="yarn.lock" />
  29. <!-- Files not to publish (note that the 'dist' subfolders are re-added below) -->
  30. </ItemGroup>
  31. <ItemGroup>
  32. <Folder Include="JsonFile\Core\" />
  33. <Folder Include="Models\" />
  34. <Folder Include="wwwroot\" />
  35. </ItemGroup>
  36. <Target Name="RunWebpack" AfterTargets="ComputeFilesToPublish">
  37. <!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
  38. <Exec Command="node -e &quot;console.log('NPM Installing dependencies...')&quot;" />
  39. <Exec Command="npm install --ignore-scripts" />
  40. <Exec Command="npm run build" />
  41. <!-- Include the newly-built files in the publish output -->
  42. <ItemGroup>
  43. <DistFiles Include="wwwroot\dist\**; ClientApp\dist\**" />
  44. <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
  45. <RelativePath>%(DistFiles.Identity)</RelativePath>
  46. <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
  47. </ResolvedFileToPublish>
  48. </ItemGroup>
  49. </Target>
  50. <ProjectExtensions><VisualStudio><UserProperties JsonFile_4EcharsL_1json__JSONSchema="http://json.schemastore.org/band-manifest" appsettings_1json__JSONSchema="" appsettings_1Development_1json__JSONSchema="" /></VisualStudio></ProjectExtensions>
  51. </Project>