EasyAbp / AbpHelper.CLI

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

Add file-scoped namespace support #168

Closed yellow-dragon-cloud closed 2 years ago

gdlcf88 commented 2 years ago

Thank you @yellow-dragon-cloud, could you please revert the Version="5.1.3" to Version="$(AbpVersion)" and then update the ABP package version in Directory.Build.props?

https://github.com/EasyAbp/AbpHelper.CLI/blob/293b2307cdc5dbd4b9da9a10996b75d8ba9a2798/Directory.Build.props#L4

It helps to unitize the ABP version, and we use this property to detect the ABP version of each EasyAbp module (including AbpHelper).

ABP version

gdlcf88 commented 2 years ago

I merged it into the gui-used branch used by AbpHelper GUI to apply the changes temporarily.

This PR is still waiting for @wakuflair to review it and merge it into the primary branch if needed.

JadynWong commented 2 years ago

BaseParserStep<TType> should also use the same changes.

https://github.com/EasyAbp/AbpHelper.CLI/blob/ec35f00513d4b277b0dda1058e16ec6682734298/src/AbpHelper.Core/Steps/Abp/ParseStep/BaseParserStep.cs?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L73-L75

gdlcf88 commented 2 years ago

We are moving the templates to file-scoped since the startup template has used it.

https://github.com/EasyAbp/AbpHelper.CLI/pull/177

gdlcf88 commented 2 years ago

Thanks, @yellow-dragon-cloud @JadynWong.