Skip to content

Commit b4f2fe2

Browse files
committed
project configured for Nuget publishing (#1)
Walkthrough: https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework Signed-off-by: Benedek Kupper <[email protected]>
1 parent b704c61 commit b4f2fe2

File tree

3 files changed

+47
-24
lines changed

3 files changed

+47
-24
lines changed

DeviceProgramming.csproj

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{85A7593E-3EC9-4B31-99F5-CA526B825F08}</ProjectGuid>
7+
<ProjectGuid>{B51F26FD-D2C6-4C70-9871-00A9959E7EC0}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>DeviceProgramming</RootNamespace>
1111
<AssemblyName>DeviceProgramming</AssemblyName>
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<Deterministic>true</Deterministic>
15+
<PackageId>DeviceProgramming</PackageId>
16+
<Version>1.0.1</Version>
17+
<Authors>Benedek Kupper</Authors>
18+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
19+
<PackageDescription>Standalone C# library for device firmware programming</PackageDescription>
20+
<Copyright>© Benedek Kupper. All rights reserved.</Copyright>
21+
<RepositoryUrl>https://github.com/IntergatedCircuits/DeviceProgramming</RepositoryUrl>
22+
<PackageLicenseUrl>https://github.com/IntergatedCircuits/DeviceProgramming/blob/master/LICENSE</PackageLicenseUrl>
23+
<PackageProjectUrl>https://github.com/IntergatedCircuits/DeviceProgramming</PackageProjectUrl>
24+
<Company>IntergatedCircuits</Company>
25+
<TargetFrameworkProfile />
1426
</PropertyGroup>
1527
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1628
<DebugSymbols>true</DebugSymbols>
1729
<DebugType>full</DebugType>
18-
<Optimize>true</Optimize>
30+
<Optimize>false</Optimize>
1931
<OutputPath>bin\Debug\</OutputPath>
2032
<DefineConstants>DEBUG;TRACE</DefineConstants>
2133
<ErrorReport>prompt</ErrorReport>
@@ -39,10 +51,11 @@
3951
<Reference Include="System.Xml" />
4052
</ItemGroup>
4153
<ItemGroup>
54+
<Compile Include="ByteArray.cs" />
4255
<Compile Include="Crc32.cs" />
56+
<Compile Include="Dfu\Device.cs" />
4357
<Compile Include="Dfu\Error.cs" />
4458
<Compile Include="Dfu\FunctionalDescriptor.cs" />
45-
<Compile Include="Dfu\Device.cs" />
4659
<Compile Include="Dfu\Protocol.cs" />
4760
<Compile Include="Dfu\Request.cs" />
4861
<Compile Include="Dfu\State.cs" />
@@ -55,19 +68,10 @@
5568
<Compile Include="Memory\Layout.cs" />
5669
<Compile Include="Memory\NamedLayout.cs" />
5770
<Compile Include="Memory\NamedMemory.cs" />
71+
<Compile Include="Memory\Permissions.cs" />
5872
<Compile Include="Memory\RawMemory.cs" />
5973
<Compile Include="Memory\Segment.cs" />
60-
<Compile Include="Memory\Permissions.cs" />
6174
<Compile Include="Properties\AssemblyInfo.cs" />
62-
<Compile Include="ByteArray.cs" />
6375
</ItemGroup>
64-
<ItemGroup />
6576
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
66-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
67-
Other similar extension points exist, see Microsoft.Common.targets.
68-
<Target Name="BeforeBuild">
69-
</Target>
70-
<Target Name="AfterBuild">
71-
</Target>
72-
-->
7377
</Project>

DeviceProgramming.nuspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package >
3+
<metadata>
4+
<id>DeviceProgramming</id>
5+
<version>1.0.1</version>
6+
<title>DeviceProgramming</title>
7+
<authors>Benedek Kupper</authors>
8+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/IntergatedCircuits/DeviceProgramming</projectUrl>
11+
<description>Standalone C# library for device firmware programming</description>
12+
<releaseNotes>Initial release</releaseNotes>
13+
<copyright>Copyright © Benedek Kupper 2021</copyright>
14+
<tags>Device Firmware Programming S19 IntelHEX DFU</tags>
15+
<dependencies>
16+
<group targetFramework=".NETFramework4.5" />
17+
</dependencies>
18+
</metadata>
19+
</package>

Properties/AssemblyInfo.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
5+
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("DeviceProgramming")]
9-
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyDescription("Standalone C# library for device firmware programming")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("IntergatedCircuits")]
1212
[assembly: AssemblyProduct("DeviceProgramming")]
13-
[assembly: AssemblyCopyright("Copyright © Benedek Kupper 2020")]
13+
[assembly: AssemblyCopyright("Copyright © Benedek Kupper 2021")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
1919
// COM, set the ComVisible attribute to true on that type.
2020
[assembly: ComVisible(false)]
2121

2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("3235961f-b759-4ddd-8dcb-74b86ce6bc0b")]
23+
[assembly: Guid("b51f26fd-d2c6-4c70-9871-00a9959e7ec0")]
2424

2525
// Version information for an assembly consists of the following four values:
2626
//
2727
// Major Version
28-
// Minor Version
28+
// Minor Version
2929
// Build Number
3030
// Revision
3131
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
32+
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.1")]
36+
[assembly: AssemblyFileVersion("1.0.1")]

0 commit comments

Comments
 (0)