EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
284 stars 94 forks source link

给工程文件添加common.props引用 #46

Closed xewn closed 4 years ago

xewn commented 4 years ago

给每个工程文件*.csproj添加common.props

xewn commented 4 years ago

或者也可以合并成一个功能,自动在解决方案目录下生成common.props、configureawait.props文件,在工程目录下生成FodyWeavers.xml文件。同时修改工程文件,引用两个props文件。

wakuflair commented 4 years ago

Not very clear about your issue, closed.

xewn commented 4 years ago

问题不清楚,你可以问?你就直接关闭掉哇?

wakuflair commented 4 years ago

You need to describe your issues in more detail:

And last not least, please use English, in order to let others understand you more easily.

xewn commented 4 years ago
<Project Sdk="Microsoft.NET.Sdk">

  <Import Project="..\..\..\configureawait.props" />
  <Import Project="..\..\..\common.props" />

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <AssemblyName>Volo.Abp</AssemblyName>
    <PackageId>Volo.Abp</PackageId>
    <AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
    <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
    <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
    <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
    <RootNamespace />
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\Volo.Abp.Core\Volo.Abp.Core.csproj" />
  </ItemGroup>
</Project>

Add a reference to common.props inside this file(*.csproj)

wakuflair commented 4 years ago

What's the purpose of doing this?

xewn commented 4 years ago

你要不就用中文吧,别扭不? 你不得把dll的公共配置放在common.props里面? 你有30个模块,你如何管理他们公共的配置信息呢? configureawait.props 这个里面不是统一来配置ConfigureAwait.Fody的? EasyAbpGuide

wakuflair commented 4 years ago

AbpHelper.CLI is not an abp module, it's just one dotnet tool with only one assembly, so no need to use common.props. And for the same reason, it's not a library supposed to be called by other apps/libraries, so no need to use ConfigureAwait.Fody.

xewn commented 4 years ago

你完全理解错了。我的意思是,用cli给其他的模块添加这些引用。不是给cli自己添加。

xewn commented 4 years ago

比如我,通过cli创建了一个新模块,这个模块本来是没有引用common.props的,也没配置ConfigureAwait.Fody的。哪如何使用 cli给模块添加这些呢?