瀏覽代碼

Disable assembly generate

master
Savorboard 5 年之前
父節點
當前提交
0a52789884
共有 2 個文件被更改,包括 3 次插入5 次删除
  1. +2
    -3
      src/DotNetCore.CAP.Dashboard/DotNetCore.CAP.Dashboard.csproj
  2. +1
    -2
      src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cshtml

+ 2
- 3
src/DotNetCore.CAP.Dashboard/DotNetCore.CAP.Dashboard.csproj 查看文件

@@ -2,11 +2,10 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>1591</NoWarn>
</PropertyGroup>

<PropertyGroup>
<!--<PropertyGroup>
<MSBuildCurrentFullPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe</MSBuildCurrentFullPath>
<RazorProjectFile>Razor.build</RazorProjectFile>
<InnerTargets>GenerateRazorClasses;Build</InnerTargets>
@@ -15,7 +14,7 @@
<Target Name="GenerateRazorClasses">
<Exec Command="&quot;$(MSBuildCurrentFullPath)&quot; $(RazorProjectFile) /v:quiet /nologo" Condition="Exists('$(MSBuildCurrentFullPath)')" />
<Warning Text="Classes for Razor files (*.cshtml) weren't re-generated: couldn't find the '$(MSBuildCurrentFullPath)' file" Condition="!Exists('$(MSBuildCurrentFullPath)')" />
</Target>
</Target>-->

<ItemGroup>
<EmbeddedResource Include="Content\css\bootstrap.min.css" />


+ 1
- 2
src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cshtml 查看文件

@@ -1,7 +1,6 @@
@* Generator: Template TypeVisibility: Public GeneratePrettyNames: True *@
@using System
@using System.Globalization
@using System.Reflection
@using DotNetCore.CAP.Dashboard.Pages
@using DotNetCore.CAP.Dashboard.Resources
@inherits DotNetCore.CAP.Dashboard.RazorPage
@@ -12,7 +11,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@{ var version = GetType().GetTypeInfo().Assembly.GetName().Version; }
@{ var version = GetType().Assembly.GetName().Version; }
<link rel="stylesheet" href="@Url.To($"/css{version.Major}{version.Minor}{version.Build}")">
</head>
<body>


Loading…
取消
儲存