Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加分版本的package引用和framework引用 #113

Merged
merged 60 commits into from
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
acd72da
add tfm package and framework assemblies support
Zhuangkh Nov 5, 2021
08b5a52
make source package IncludeAssets set all
Zhuangkh Nov 8, 2021
1bb91ea
fix tfm reading bug
Zhuangkh Nov 8, 2021
0bf141b
fix packageid bug
Zhuangkh Nov 8, 2021
a542716
重新覆盖回文件
lindexi Nov 18, 2021
7427202
加上注释和测试逻辑
lindexi Nov 18, 2021
e166a55
加上给多框架存放各个框架的信息的文件
lindexi Nov 18, 2021
ac42aa7
加回引用收集逻辑
lindexi Nov 18, 2021
d160c40
加上注释
lindexi Nov 18, 2021
fc7176d
加上多个命令的支持
lindexi Nov 18, 2021
d5f5625
准备加上各个框架的写入
lindexi Nov 18, 2021
eaaee10
Revert "准备加上各个框架的写入"
lindexi Nov 18, 2021
13742e7
Revert "加上多个命令的支持"
lindexi Nov 18, 2021
f94ee33
写入框架信息,用于多个框架时不会使用最后一个框架写入的信息
lindexi Nov 18, 2021
9ed79a4
修复首次构建项目没有创建文件夹
lindexi Nov 18, 2021
8adf6f7
优化注释
lindexi Nov 18, 2021
94ac502
尝试传入多框架文件夹
lindexi Nov 18, 2021
df02555
不能将 Error 放在 Project 下
lindexi Nov 18, 2021
f0c33da
干掉一层分割
lindexi Nov 18, 2021
77df6e5
更新库
lindexi Nov 18, 2021
7adfb1f
加上从多框架项目输出文件夹读取
lindexi Nov 18, 2021
07d0aa7
生成包自动传入日志
lindexi Nov 18, 2021
3d2b6c3
干掉重复逻辑
lindexi Nov 18, 2021
c9d54a7
修复打包失败
lindexi Nov 18, 2021
ceb01da
加上判断文件合法逻辑
lindexi Nov 18, 2021
5979444
加上解析多个框架逻辑
lindexi Nov 18, 2021
057514e
加上解析逻辑
lindexi Nov 18, 2021
0d6aa33
获取正确框架
lindexi Nov 18, 2021
0db91aa
干掉不需要使用的日志
lindexi Nov 19, 2021
a44a169
干掉静态常量
lindexi Nov 19, 2021
e9ad7bc
修改命名
lindexi Nov 19, 2021
09fca3f
拆分文件
lindexi Nov 19, 2021
2aa14cb
修改命名空间
lindexi Nov 19, 2021
463bbba
加回框架版本逻辑
lindexi Nov 19, 2021
a8b22d5
加上框架依赖
lindexi Nov 19, 2021
daf115c
修改版权
lindexi Nov 19, 2021
fb5e9dd
测试无框架依赖
lindexi Nov 19, 2021
067d359
框架依赖内容需要设置为可空
lindexi Nov 19, 2021
1280d7c
如果没有任何框架依赖,那么应该啥都不输出
lindexi Nov 19, 2021
0075ac7
尝试加上框架的依赖
lindexi Nov 19, 2021
eeb8df7
加上注释
lindexi Nov 19, 2021
263e69c
修复设置了 DevelopmentDependency 将不自动添加依赖
lindexi Nov 19, 2021
c0cd6f0
修复源代码包设置了 DevelopmentDependency 将不自动添加依赖
lindexi Nov 19, 2021
5ca9a7b
集成测试
lindexi Nov 19, 2021
8d171c6
修复多框架传入命令行
lindexi Nov 19, 2021
e8005bd
尝试修复对单框架项目的支持
lindexi Nov 19, 2021
46582cf
测试单框架
lindexi Nov 19, 2021
e63dbcf
测试用多框架做的项目
lindexi Nov 19, 2021
cad25ca
文档上加上感谢
lindexi Nov 19, 2021
3db1b73
加上注释
lindexi Nov 19, 2021
8956d9e
删除不使用的代码
lindexi Nov 19, 2021
999e793
更新文档
lindexi Nov 19, 2021
444d924
删掉不需要的参数
lindexi Nov 19, 2021
3af1fb8
加上术语
lindexi Nov 19, 2021
8136f02
测试干掉一些参数
lindexi Nov 19, 2021
7ae281d
修改版权
lindexi Nov 19, 2021
f6b1ea2
修复格式
lindexi Nov 19, 2021
8dc1238
加上注释
lindexi Nov 19, 2021
c7b913a
统一判断
lindexi Nov 19, 2021
5ab95e2
支持仅安装高版本的设备
lindexi Nov 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- 默认是 true,如果指定为 false,那么项目编译输出的 dll 文件将不会被打包到 NuGet 包中。 -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<Description>Add a NuGet package only for dll reference? By using dotnetCampus.SourceYard, you can pack a NuGet package with source code. By installing the new source code package, all source codes behaviors just like it is in your project.</Description>
<Copyright>Copyright (c) 2020 dotnet-campus</Copyright>
<Copyright>Copyright (c) 2019-2021 dotnet-campus</Copyright>
<PackageProjectUrl>https://github.com/dotnet-campus/dotnetCampus.SourceYard</PackageProjectUrl>
<RepositoryUrl>https://github.com/dotnet-campus/dotnetCampus.SourceYard.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ If you would like to contribute, feel free to create a [Pull Request](https://gi

## Roadmap

Check out this [Roadmap](https://github.com/dotnet-campus/SourceYard/projects/1) to learn about our development plans for 2020.
Check out this [Roadmap](https://github.com/dotnet-campus/SourceYard/projects/1) to learn about our development plans for 2021.

## Thanks

- [@Zhuangkh](https://github.com/Zhuangkh)
2 changes: 1 addition & 1 deletion build/Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>0.1.19372-alpha</Version>
<Version>0.1.19393-alpha13</Version>
</PropertyGroup>
</Project>
34 changes: 34 additions & 0 deletions docs/zh-cn/Behavior.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 行为和配置

## 术语

源代码包: 将源代码打包到 NuGet 文件,也就是 SourceYard 工具的输出文件

库项目: 用于打出源代码包的项目

目标项目: 安装上某个源代码包的项目

## 特殊配置

在 SourceYard 打出的源代码包中,可以通过一些特殊的配置实现源代码包特殊的功能

### DisableSourcePackageAutoPrivateAssets
lindexi marked this conversation as resolved.
Show resolved Hide resolved

禁止自动配置目标全部源代码包自动设置 PrivateAssets 属性,默认的源代码将会自动添加如下代码

```xml
<ItemGroup Condition="$(DisableSourcePackageAutoPrivateAssets) != 'true'">
lindexi marked this conversation as resolved.
Show resolved Hide resolved
<!-- 用于修复设置了 DevelopmentDependency 将不自动添加依赖 -->
<!-- 参阅 https://github.com/dotnet-campus/SourceYard/issues/112 -->
<PackageReference Update="#(PackageId)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>all</IncludeAssets>
</PackageReference>
</ItemGroup>
```

可以通过在 `目标项目` 上设置 DisableSourcePackageAutoPrivateAssets 属性为 true 禁用当前项目全部安装的源代码包自动设置

以上的 `#(PackageId)` 就是对应的安装的源代码包,如 `TheLib.Source` 等

如需要对具体某个源代码包进行配置,请自行设置更新覆盖即可
8 changes: 4 additions & 4 deletions sample/App/AppUsingSource/AppUsingSource.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.props') " Project="obj\AppUsingSource.csproj.nuget.g.props" />
<!--<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.props') " Project="obj\AppUsingSource.csproj.nuget.g.props" />-->

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFrameworks>net45;net5.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<StartupObject />
</PropertyGroup>

<ItemGroup>
<PackageReference Include="TheLib.Source" Version="1.0.2" />
<PackageReference Include="TheLib.Source" Version="1.0.3-alpha06" />
</ItemGroup>
<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.targets') " Project="obj\AppUsingSource.csproj.nuget.g.targets" />
<!--<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.targets') " Project="obj\AppUsingSource.csproj.nuget.g.targets" />-->
</Project>
8 changes: 8 additions & 0 deletions sample/App/AppUsingSource/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Windows;
using TheLib;

namespace AppUsingSource
Expand All @@ -8,6 +9,13 @@ class Program
static void Main(string[] args)
{
var money = new Money(12312);
var v = (money, "123");
Console.WriteLine(v);

#if NET45
var dependencyObject = new DependencyObject();
#endif

Console.WriteLine(money.ToCapital());
Console.ReadLine();
}
Expand Down
31 changes: 28 additions & 3 deletions sample/App/TheLib/TheLib.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net45</TargetFramework>
<TargetFrameworks>net45</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19370-alpha01">
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19393-alpha13">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- <Target Name="GallikufawhaGebalule" AfterTargets="Build"> -->
<!-- ~1~ <Warning Text="PackingDirectory: $(PackingDirectory)" /> @1@ -->
<!-- <Warning Text="IntermediateOutputPath: $(IntermediateOutputPath)" /> -->
<!-- </Target> -->

<ItemGroup Condition="'$(TargetFramework)'=='net45'">
<Reference Include="WindowsBase"></Reference>
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="dotnetCampus.CommandLine" Version="3.3.0" />
</ItemGroup>

<!--<Target Name="_SourceYardFrameworkAssets"
AfterTargets="ResolveReferences">
<ItemGroup>
<_TfmSpecificFrameworkAssemblyReferences Include="@(ReferencePath->'%(OriginalItemSpec)')"
Condition="'%(ReferencePath.Pack)' != 'false' AND '%(ReferencePath.ResolvedFrom)' == '{TargetFrameworkDirectory}'">
</_TfmSpecificFrameworkAssemblyReferences>
</ItemGroup>

<Warning Text="$(TargetFramework):@(_TfmSpecificFrameworkAssemblyReferences)"/>
</Target>-->

<ItemGroup>
<SourceYardExcludeFileItem Include="foo.coin" />
<SourceYardExcludeFileItem Include="Resource\F1.md" />
</ItemGroup>

</Project>
</Project>
2 changes: 1 addition & 1 deletion sample/build/Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.3</Version>
<Version>1.0.3-alpha06</Version>
</PropertyGroup>
</Project>
41 changes: 37 additions & 4 deletions src/dotnetCampus.SourceYard/Assets/Current/Core.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>

<PropertyGroup>
<!-- 用于给多框架存放各个框架的信息的文件的文件夹,各个框架将会在写入到各自的文件里面 -->
<!-- 选择 BaseIntermediateOutputPath 是因为开发者可以配置不同的框架采用不同的 obj 文件夹,但是对于不同的框架,大部分都是使用相同的 BaseIntermediateOutputPath 文件夹 -->
<_SourceYardMultiTargetingPackageInfoFolder>$(BaseIntermediateOutputPath)$(Configuration)\SourceYardMultiTargetingPackageInfoFolder\</_SourceYardMultiTargetingPackageInfoFolder>
<!--
输出形式如:
- obj\Debug\SourceYardMultiTargetingPackageInfoFolder\net45.txt
- obj\Debug\SourceYardMultiTargetingPackageInfoFolder\net5.0.txt
-->
</PropertyGroup>

<!-- 打包核心 -->

Expand All @@ -16,9 +27,24 @@
</ItemGroup>
</Target>

<Target Name="_SourceYardFrameworkAssets"
AfterTargets="ResolveReferences">
<ItemGroup>
<!-- 参考 [增加分版本的package引用和framework引用 by Zhuangkh · Pull Request #111 · dotnet-campus/SourceYard](https://github.com/dotnet-campus/SourceYard/pull/111 ) -->
<_TfmSpecificFrameworkAssemblyReferences Include="@(ReferencePath->'%(OriginalItemSpec)')"
Condition="'%(ReferencePath.Pack)' != 'false' AND '%(ReferencePath.ResolvedFrom)' == '{TargetFrameworkDirectory}'">
</_TfmSpecificFrameworkAssemblyReferences>
</ItemGroup>
</Target>

<!--打包第一步,将会多个框架分别执行-->
<Target Name="SourceYardStep1">
<PropertyGroup>
<!-- 用于将各个框架的信息写入的文件 -->
<_SourceYardMultiTargetingPackageInfoFile>$(_SourceYardMultiTargetingPackageInfoFolder)$(TargetFramework).txt</_SourceYardMultiTargetingPackageInfoFile>

<!-- 这里不能使用 $(PackingDirectory) 属性,原因是此属性在未打包时是空 -->
<!-- 对于多框架来说,这里的 IntermediateOutputPath 路径格式如 obj\Debug\net45\ -->
<SourcePackingDirectory>$(IntermediateOutputPath)SourcePacking\</SourcePackingDirectory>

<CompileTextFile>$(SourcePackingDirectory)CompileFile.txt</CompileTextFile>
Expand All @@ -34,6 +60,7 @@
<PackageReleaseNotesFile>$(SourcePackingDirectory)PackageReleaseNotesFile.txt</PackageReleaseNotesFile>

<PackageReferenceVersionFile>$(SourcePackingDirectory)PackageReferenceVersionFile.txt</PackageReferenceVersionFile>
<FrameworkReferenceVersionFile>$(SourcePackingDirectory)FrameworkReferenceVersionFile.txt</FrameworkReferenceVersionFile>
<SourceProjectPackageFile>$(SourcePackingDirectory)SourceProjectPackageFile.txt</SourceProjectPackageFile>
<SourceYardPackageReferenceFile>$(SourcePackingDirectory)SourceYardPackageReferenceFile.txt</SourceYardPackageReferenceFile>

Expand Down Expand Up @@ -91,10 +118,9 @@
<SourceYardPackageId Condition="'$(PackageId)' != ''">--PackageId "$(PackageId) "</SourceYardPackageId>

<SourceMSBuildProjectFullPath>-p "$(MSBuildProjectFullPath) "</SourceMSBuildProjectFullPath>
<SourceIntermediateDirectory>-i "$(SourcePackingDirectory)Package "</SourceIntermediateDirectory>

<SourcePackageOutputPath Condition="'$(PackageOutputPath)' != ''">-n "$(PackageOutputPath) "</SourcePackageOutputPath>
<SourcePackageOutputPath Condition="'$(PackageOutputPath)' == '' and $(OutputPath) != ''">-n "$(OutputPath) "</SourcePackageOutputPath>
<SourcePackageReferenceVersion>--PackageReferenceVersion "$(PackageReferenceVersionFile)"</SourcePackageReferenceVersion>

</PropertyGroup>

Expand All @@ -105,8 +131,14 @@
<!--打包第二步,将会多个框架分别执行-->
<Target Name="SourceYardStep2">

<MakeDir Condition="!Exists($(_SourceYardMultiTargetingPackageInfoFolder))" Directories="$(_SourceYardMultiTargetingPackageInfoFolder)"></MakeDir>

<MakeDir Condition="!Exists($(SourcePackingDirectory))" Directories="$(SourcePackingDirectory)"></MakeDir>

<!-- 写入框架信息 -->
<!--为了支持多框架项目,需要将当前的路径写入保存-->
<WriteLinesToFile File="$(_SourceYardMultiTargetingPackageInfoFile)" Lines="$(SourcePackingDirectory)" Overwrite="true"/>

<WriteLinesToFile File="$(CompileTextFile)" Lines="@(Compile)" Overwrite="true" />
<WriteLinesToFile File="$(ResourceTextFile)" Lines="@(Resource)" Overwrite="true" />
<WriteLinesToFile File="$(ContentTextFile)" Lines="@(Content)" Overwrite="true" />
Expand All @@ -128,6 +160,7 @@
<WriteLinesToFile File="$(SourceProjectPackageFile)" Lines=">;RepositoryUrl;$(RepositoryUrl);"></WriteLinesToFile>

<WriteLinesToFile File="$(PackageReferenceVersionFile)" Lines="@(_PackageReferenceVersion)" Overwrite="true" />
<WriteLinesToFile File="$(FrameworkReferenceVersionFile)" Lines="@(_TfmSpecificFrameworkAssemblyReferences)" Overwrite="true"/>
<WriteLinesToFile File="$(SourceYardPackageReferenceFile)" Lines="$(SourceYardPackageReference)" Overwrite="true"></WriteLinesToFile>

<WriteLinesToFile File="$(SourceYardCompilePackageFile)" Lines="@(_SourceYardCompilePackage)" Overwrite="true"></WriteLinesToFile>
Expand All @@ -152,7 +185,7 @@

<!--打包第三步,无论多框架还是单框架只执行一次-->
<Target Name="SourceYardStep3">

<!-- 开发者自己有指定路径,但是路径里面不存在应用 -->
<Error Text="Can not find SourceYardApplicationFilePath $(SourceYardApplicationFilePath)" Condition="'$(SourceYardApplicationFilePath)' != '' And !Exists($(SourceYardApplicationFilePath))"/>

Expand All @@ -166,7 +199,7 @@
</PropertyGroup>

<Exec
Command="$(SourceYardApplicationFilePath) $(SourceMSBuildProjectFullPath) $(SourceIntermediateDirectory) $(SourcePackageOutputPath) $(SourceYardPackageVersion) --Compile $(CompileTextFile) --Resource $(ResourceTextFile) --Content $(ContentTextFile) --Page $(PageTextFile) --ApplicationDefinition $(ApplicationDefinitionTextFile) --None $(NoneTextFile) --EmbeddedResource $(EmbeddedResourceTextFile) $(SourceYardAuthors) $(SourceYardRepositoryUrl) $(SourceYardRepositoryType) $(SourceYardPackageProjectUrl) $(SourceYardCopyright) $(SourceYardDescription) $(SourceYardTitle) $(SourceYardPackageLicenseUrl) $(SourceYardPackageReleaseNotes) $(SourceYardPackageTags) $(SourceYardOwner) $(SourceYardPackageId) $(SourcePackageReferenceVersion) --SourcePackingDirectory $(SourcePackingDirectory) --TargetFrameworks &quot;$(TargetFrameworks) &quot; --TargetFramework &quot;$(TargetFramework) &quot;">
Command="$(SourceYardApplicationFilePath) $(SourceMSBuildProjectFullPath) $(SourcePackageOutputPath) $(SourceYardPackageVersion) $(SourceYardAuthors) $(SourceYardRepositoryUrl) $(SourceYardRepositoryType) $(SourceYardPackageProjectUrl) $(SourceYardCopyright) $(SourceYardDescription) $(SourceYardTitle) $(SourceYardPackageLicenseUrl) $(SourceYardPackageReleaseNotes) $(SourceYardPackageTags) $(SourceYardOwner) $(SourceYardPackageId) --TargetFrameworks &quot;$(TargetFrameworks) &quot; --TargetFramework &quot;$(TargetFramework) &quot; --MultiTargetingPackageInfoFolder &quot;$(_SourceYardMultiTargetingPackageInfoFolder) &quot;">
</Exec>

<Message Text="Finish SourceYardStep3"></Message>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<Project>

<ItemGroup Condition="$(DisableSourcePackageAutoPrivateAssets) != 'true'">
<!-- 用于修复设置了 DevelopmentDependency 将不自动添加依赖 -->
<!-- 参阅 https://github.com/dotnet-campus/SourceYard/issues/112 -->
<PackageReference Update="#(PackageId)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>all</IncludeAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup Condition="!$(DefineConstants.Contains('#(PackageGuid)SOURCE_REFERENCE')) ">
<_#(PackageGuid)ImportInWpfTempProjectDependsOn>
_#(PackageGuid)IncludeSourceCodes
Expand Down
70 changes: 38 additions & 32 deletions src/dotnetCampus.SourceYard/Cli/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ internal class Options
[Option('p', "project", Description = "The full path of the project file.")]
public string ProjectFile { get; set; } = null!;

/// <summary>
/// 临时的文件夹的路径
/// </summary>
[Option('i', "intermediate-directory", Description = "The relative path of the project intermediate output path, commonly the 'obj' folder and value in 'obj'.")]
public string IntermediateDirectory { get; set; } = null!;
///// <summary>
///// 临时的文件夹的路径
///// </summary>
//[Option('i', "intermediate-directory", Description = "The relative path of the project intermediate output path, commonly the 'obj' folder and value in 'obj'.")]
//public string IntermediateDirectory { get; set; } = null!;

/// <summary>
/// 打包输出的文件夹
Expand All @@ -30,29 +30,29 @@ internal class Options
Description = "The package version value.")]
public string PackageVersion { get; set; } = "1.0.0";

/// <summary>
/// 项目进行编译的文件的列表,因为参数太多,需要将参数写到文件
/// </summary>
[Option(longName: "Compile", Description = "编译的文件")]
public string? CompileFile { get; set; }
///// <summary>
///// 项目进行编译的文件的列表,因为参数太多,需要将参数写到文件
///// </summary>
//[Option(longName: "Compile", Description = "编译的文件")]
//public string? CompileFile { get; set; }

/// <summary>
/// 存放资源文件参数的文件
/// </summary>
[Option(longName: "Resource", Description = "资源文件")]
public string? ResourceFile { get; set; }
///// <summary>
///// 存放资源文件参数的文件
///// </summary>
//[Option(longName: "Resource", Description = "资源文件")]
//public string? ResourceFile { get; set; }

[Option(longName: "Content")]
public string? ContentFile { get; set; }
//[Option(longName: "Content")]
//public string? ContentFile { get; set; }

[Option(longName: "Page")]
public string? Page { get; set; }
//[Option(longName: "Page")]
//public string? Page { get; set; }

[Option(longName: "None")]
public string? None { get; set; }
//[Option(longName: "None")]
//public string? None { get; set; }

[Option(longName: "EmbeddedResource")]
public string? EmbeddedResource { get; set; }
//[Option(longName: "EmbeddedResource")]
//public string? EmbeddedResource { get; set; }

/// <summary>
/// 打包的公司内容
Expand Down Expand Up @@ -82,8 +82,8 @@ internal class Options
[Option(longName: "DescriptionFile")]
public string? DescriptionFile { get; set; }

[Option(longName: "ApplicationDefinition")]
public string? ApplicationDefinition { get; set; }
//[Option(longName: "ApplicationDefinition")]
//public string? ApplicationDefinition { get; set; }

[Option(longName: "Owner")]
public string? Owner { get; set; }
Expand All @@ -106,19 +106,25 @@ internal class Options
[Option(longName: "PackageId")]
public string? PackageId { get; set; }

[Option(longName: "PackageReferenceVersion")]
public string? PackageReferenceVersion { get; set; }
//[Option(longName: "PackageReferenceVersion")]
//public string? PackageReferenceVersion { get; set; }

/// <summary>
/// 打包用到的文件夹
/// </summary>
[Option(longName: "SourcePackingDirectory")]
public string SourcePackingDirectory { get; set; } = null!;
///// <summary>
///// 打包用到的文件夹
///// </summary>
//[Option(longName: "SourcePackingDirectory")]
//public string SourcePackingDirectory { get; set; } = null!;

[Option(longName: "TargetFramework")]
public string? TargetFramework { get; set; }

[Option(longName: "TargetFrameworks")]
public string? TargetFrameworks { get; set; }

/// <summary>
/// 多框架信息存放的文件夹,即使是单框架项目也会存在此文件夹
/// </summary>
[Option("MultiTargetingPackageInfoFolder")]
public string MultiTargetingPackageInfoFolder { set; get; } = null!;
}
}
Loading