Просмотр исходного кода

清理 DLL 引用的绝对路径

龙腾猫跃 3 месяцев назад
Родитель
Сommit
7bc61645d5
2 измененных файлов с 4 добавлено и 16 удалено
  1. 3 10
      Shared/MeloongCore.csproj
  2. 1 6
      Wpf/MeloongCore.Wpf.csproj

+ 3 - 10
Shared/MeloongCore.csproj

@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
 
 	<PropertyGroup>
 		<TargetFramework>netstandard2.0</TargetFramework>
@@ -15,10 +15,12 @@
 	</PropertyGroup>
 
 	<ItemGroup>
+		<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
 		<PackageReference Include="PolySharp" Version="1.15.0">
 			<PrivateAssets>all</PrivateAssets>
 			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
 		</PackageReference>
+		<PackageReference Include="ThrottleDebounce" Version="2.0.2" />
 	</ItemGroup>
 
 	<ItemGroup>
@@ -36,15 +38,6 @@
 		<Using Include="MeloongCore.Extensions" />
 	</ItemGroup>
 
-	<ItemGroup>
-		<Reference Include="ThrottleDebounce">
-			<HintPath>..\..\Plain Craft Launcher 2\Resources\ThrottleDebounce.dll</HintPath>
-		</Reference>
-		<Reference Include="Newtonsoft.Json">
-			<HintPath>..\..\Plain Craft Launcher 2\Resources\Newtonsoft.Json.dll</HintPath>
-		</Reference>
-	</ItemGroup>
-
 	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
 		<DefineConstants>$(DefineConstants);SNAPSHOT</DefineConstants>
 	</PropertyGroup>

+ 1 - 6
Wpf/MeloongCore.Wpf.csproj

@@ -15,6 +15,7 @@
 	</PropertyGroup>
 
 	<ItemGroup>
+		<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
 		<PackageReference Include="Ookii.Dialogs.Wpf" Version="5.0.1" />
 		<PackageReference Include="PolySharp" Version="1.15.0">
 			<PrivateAssets>all</PrivateAssets>
@@ -41,12 +42,6 @@
 		<ProjectReference Include="..\Shared\MeloongCore.csproj" />
 	</ItemGroup>
 
-	<ItemGroup>
-		<Reference Include="Newtonsoft.Json">
-			<HintPath>..\..\Plain Craft Launcher 2\Resources\Newtonsoft.Json.dll</HintPath>
-		</Reference>
-	</ItemGroup>
-
 	<ItemGroup>
 		<Reference Include="System.Windows.Forms" />
 		<Reference Include="PresentationCore" />