Migrate to .net core sdk

This commit is contained in:
Konstantin Safonov 2020-03-18 01:14:41 +03:00
parent 1149709d03
commit 5006877670
12 changed files with 39 additions and 120 deletions

View File

@ -4,3 +4,9 @@
* Added new info about steam and steam application
* `1.1.0.1` Whats new:
* Add info directly from Steam
* `1.1.0.2` Whats new:
* Fixed catching exceptions
* `1.1.0.3` Whats new:
* Fixed loading appmanifest data if we have an invalid *.acf.
* `1.1.0.4` Whats new:
* Code review and optimizations

View File

@ -1,29 +0,0 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="3.3">
<id>EpicMorg.SteamPathsLib</id>
<title>Steam Paths Library</title>
<version>1.1.0.3</version>
<authors>EpicMorgDev, AurZum, stam</authors>
<owners>EpicMorgDev, AurZum, stam</owners>
<language>en-US</language>
<projectUrl>https://github.com/EpicMorg/SteamPathsLib</projectUrl>
<repository type="git" url="https://github.com/EpicMorg/SteamPathsLib.git" branch="master"/>
<license type="expression">MIT</license>
<icon>images\icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>Fixed loading appmanifest data if we have an invalid *.acf.</releaseNotes>
<description>Small helper for getting some registry keys of Steam.</description>
<copyright>Copyright © 2020 EpicMorg</copyright>
<tags>steam epicmorg registry path helper vdf</tags>
<dependencies>
<group targetFramework=".NETFramework4.8.0">
<dependency id="Gameloop.Vdf" version="0.5.0" />
</group>
</dependencies>
</metadata>
<files>
<file src="lib\net48\*.dll" target="lib\net48" />
<file src="images\*" target="images" />
</files>
</package>

View File

@ -1,6 +0,0 @@
Remove-Item './lib/net48/dummy_file' -Force
Remove-Item './*.nupkg' -Force
& nuget.exe pack ./EpicMorg.SteamPathsLib.nuspec
Copy-Item './dummy_file' -Destination './lib/net48/dummy_file' -Force

View File

@ -1 +0,0 @@
dummy_file

View File

@ -1 +0,0 @@
dummy_file

View File

@ -1,66 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E34AE985-7C7E-49BA-A2B0-70D88F865265}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EpicMorg.SteamPathsLib</RootNamespace>
<AssemblyName>EpicMorg.SteamPathsLib</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Project Sdk="Microsoft.Net.Sdk">
<PropertyGroup>
<ApplicationIcon>steam.ico</ApplicationIcon>
<TargetFrameworks>net46;netstandard1.3</TargetFrameworks>
<Company>EpicMorg</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/EpicMorg/SteamPathsLib</RepositoryUrl>
<PackageIcon>steam.png</PackageIcon>
<PackageProjectUrl>https://github.com/EpicMorg/SteamPathsLib</PackageProjectUrl>
<Copyright>Copyright © EpicMorg 2020</Copyright>
<AssemblyVersion>1.1.0.4</AssemblyVersion>
<FileVersion>1.1.0.4</FileVersion>
<Version>1.1.0.4</Version>
<Description>Small helper for getting some registry keys of Steam.</Description>
<Authors>EpicMorgDev, AurZum, stam, kasthack</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<PackageTags>steam epicmorg registry path helper vdf</PackageTags>
<PackageReleaseNotes>Code review and optimizations</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<None Include="steam.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
<PackageReference Include="Gameloop.Vdf" Version="0.5.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<None Include="steam.ico">
<Pack>True</Pack>
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="Model\ActiveProcessSteamRegistryData.cs" />
<Compile Include="Model\ConfigSteamData.cs" />
<Compile Include="Model\LibrarySteamData.cs" />
<Compile Include="Model\SteamAppManifestData.cs" />
<Compile Include="Model\SteamAppRegistryData.cs" />
<Compile Include="Model\SteamRegistryData.cs" />
<Compile Include="SteamPathsUtil.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="steam.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Gameloop.Vdf">
<Version>0.5.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,18 +0,0 @@
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("EpicMorg.SteamPathsLib")]
[assembly: AssemblyDescription("Steam Paths Library")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EpicMorg")]
[assembly: AssemblyProduct("EpicMorg.SteamPathsLib")]
[assembly: AssemblyCopyright("Copyright © EpicMorg 2020")]
[assembly: AssemblyTrademark("Valve")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("e34ae985-7c7e-49ba-a2b0-70d88f865265")]
[assembly: AssemblyVersion("1.1.0.3")]
[assembly: AssemblyFileVersion("1.1.0.3")]

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
</startup>
</configuration>

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.3")]
[assembly: AssemblyFileVersion("1.0.0.3")]
[assembly: AssemblyVersion("1.0.0.4")]
[assembly: AssemblyFileVersion("1.0.0.4")]

View File

@ -12,7 +12,7 @@ namespace SteamTest.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

View File

@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>SteamTest</RootNamespace>
<AssemblyName>SteamTest</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />