【发布时间】:2021-04-27 02:42:21
【问题描述】:
我创建了一个 .NET Core 应用程序。当我这样做时:
dotnet publish -r win81-x64
执行所需的所有文件都部署在以下文件夹中:
\bin\Debug\netcoreapp1.1\win81-x64\publish
在所有文件中,我有一个名为 Example.dll 的 dll 文件和一个名为 Example.exe 的 exe 文件。现在,我的问题是当我执行 exe 时,在任务管理器中的应用程序描述说:
点网
我想将其更改为示例,因为我尝试编辑我的 csproj 以包含以下内容:
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.0.0.0</Version>
<Description>Example</Description>
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeIdentifiers>win81-x64</RuntimeIdentifiers>
<Satellite_Description>Example</Satellite_Description>
</PropertyGroup>
但它似乎对生成的exe文件没有任何影响,只有在dll中。如何更改 exe 描述?
【问题讨论】: