提交 0075ac7a 编写于 作者: lindexi_gd's avatar lindexi_gd

尝试加上框架的依赖

上级 1280d7cf
......@@ -2,13 +2,13 @@
<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.3" />
<PackageReference Include="TheLib.Source" Version="1.0.3-alpha03" />
</ItemGroup>
<Import Condition="Exists('obj\AppUsingSource.csproj.nuget.g.targets') " Project="obj\AppUsingSource.csproj.nuget.g.targets" />
</Project>
using System;
using System.Windows;
using TheLib;
namespace AppUsingSource
......@@ -8,6 +9,8 @@ namespace AppUsingSource
static void Main(string[] args)
{
var money = new Money(12312);
var v = (money, "123");
Console.WriteLine(money.ToCapital());
Console.ReadLine();
}
......
......@@ -6,7 +6,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19393-alpha05">
<PackageReference Include="dotnetCampus.SourceYard" Version="0.1.19393-alpha06">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
......@@ -18,7 +18,7 @@
<!-- </Target> -->
<ItemGroup Condition="'$(TargetFramework)'=='net45'">
<!-- <Reference Include="WindowsBase"></Reference> -->
<Reference Include="WindowsBase"></Reference>
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
......
<Project>
<PropertyGroup>
<Version>1.0.3-alpha01</Version>
<Version>1.0.3-alpha03</Version>
</PropertyGroup>
</Project>
\ No newline at end of file
......@@ -119,11 +119,11 @@ namespace dotnetCampus.SourceYard.PackFlow.NuspecFiles.NuspecContexts
[XmlElement("SourceYardPackage")]
public string? SourceYardPackage { set; get; }
/// <summary>
/// 通过这个属性可以在安装源代码包的时候默认选 private assets 这样就可以让安装源代码包的项目被引用的时候,引用的项目不需要再安装源代码包
/// </summary>
[XmlElement("developmentDependency")]
public string? DevelopmentDependency { get; set; } = "true";
///// <summary>
///// 通过这个属性可以在安装源代码包的时候默认选 private assets 这样就可以让安装源代码包的项目被引用的时候,引用的项目不需要再安装源代码包
///// </summary>
//[XmlElement("developmentDependency")]
//public string? DevelopmentDependency { get; set; } = "true";
[XmlElement("repository")]
public Repository? Repository { set; get; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册