1
- # Sample TinyCLR Project
1
+ # Sample Dotnet Core TinyCLR Project
2
2
3
3
[ ![ Build Status] ( https://img.shields.io/github/workflow/status/microcompiler/tinyclr-github/Build%20CI?style=flat-square )] ( https://github.com/microcompiler/tinyclr-github/actions )
4
4
@@ -20,51 +20,51 @@ This repo contains a sample Visual Studio project leveraging github actions to b
20
20
## Required CSPROJ file settings
21
21
22
22
``` xml
23
+ <Project Sdk =" Microsoft.NET.Sdk" >
24
+ <PropertyGroup >
25
+ <TargetFramework >net452</TargetFramework >
26
+ <FrameworkPathOverride >$(NugetPackagesPath)\.nuget\packages\ghielectronics.tinyclr.core\1.0.0\</FrameworkPathOverride >
27
+ <DisableImplicitFrameworkReferences >true</DisableImplicitFrameworkReferences >
28
+ </PropertyGroup >
29
+ <ItemGroup >
30
+ <PackageReference Include =" GHIElectronics.TinyCLR.Core" Version =" 1.0.0" PrivateAssets =" all" />
31
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" all" />
32
+ </ItemGroup >
33
+ </Project >
34
+ ```
35
+
36
+ ### Required Directory.Build.props file settings
37
+
38
+ ``` xml
39
+ <Project >
40
+ <!-- Nuget Pack Properties -->
23
41
<PropertyGroup >
24
- <!-- Nuget Pack Properties -->
25
- <RuntimeIdentifier >win</RuntimeIdentifier >
26
42
<GenerateDocumentationFile >true</GenerateDocumentationFile >
27
- <IncludeSymbols >true </IncludeSymbols >
43
+ <IncludeSymbols >false </IncludeSymbols >
28
44
<SymbolPackageFormat >snupkg</SymbolPackageFormat >
29
- <PackageId >$(AssemblyName)</ PackageId >
30
- <AssemblyTitle >$(AssemblyName)</ AssemblyTitle >
45
+ <AssemblyVersion >1.0.6.0</ AssemblyVersion >
46
+ <FileVersion >1.0.6.0</ FileVersion >
31
47
<VersionPrefix >1.0.0</VersionPrefix >
32
48
<Version Condition =" '$(Version)' == '' and '$(VersionSuffix)' != '' " >$(VersionPrefix)-$(VersionSuffix)</Version >
33
- <Version Condition =" '$(Version)' == '' " >$(VersionPrefix)</Version >
49
+ <Version Condition =" '$(Version)' == '' " >$(VersionPrefix)</Version >
50
+ <GenerateAssemblyInfo >true</GenerateAssemblyInfo >
51
+ <AssemblyVersion >$(VersionPrefix).0</AssemblyVersion >
52
+ <FileVersion >$(VersionPrefix).0</FileVersion >
34
53
<Authors >Microcompiler</Authors >
35
- <Company >$(AssemblyCompany)</Company >
36
- <Description >Simple TinyCLR Cube Library</Description >
37
- <PackageTags >TinyCLR, firmware, iot</PackageTags >
38
- <PackageProjectUrl >https://github.com/microcompiler/</PackageProjectUrl >
39
- <RepositoryUrl >https://github.com/microcompiler/tinyclr</RepositoryUrl >
54
+ <Company >Bytewizer Inc.</Company >
55
+ <RepositoryUrl >https://github.com/microcompiler/tinyclr-github</RepositoryUrl >
56
+ <PackageId >$(AssemblyName)</PackageId >
57
+ <PackageTags >TinyCLR TinyCLROS</PackageTags >
40
58
<PackageLicenseFile >LICENSE.md</PackageLicenseFile >
41
59
<PackageIcon >logo.png</PackageIcon >
42
- <NoWarn >NU5105</NoWarn >
43
- <!-- Nuget Pack Properties -->
60
+ <NoWarn >NU5105</NoWarn >
44
61
</PropertyGroup >
45
- <ItemGroup >
46
- <PackageReference Include =" GHIElectronics.TinyCLR.Core" Version =" 1.0.0" />
47
- <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" all" />
48
- <PackageReference Include =" NuGet.Build.Tasks.Pack" Version =" 5.5.0-preview.1.6319" >
49
- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
50
- <PrivateAssets >all</PrivateAssets >
51
- </PackageReference >
52
- </ItemGroup >
62
+ <!-- Nuget Pack Properties -->
53
63
<!-- Embedded files -->
54
64
<ItemGroup >
55
- <None Include =" ..\..\LICENSE.md" Link =" LICENSE.md" >
56
- <Pack >True</Pack >
57
- <PackagePath >
58
- </PackagePath >
59
- </None >
65
+ <None Include =" ..\..\LICENSE.md" Pack =" true" PackagePath =" $(PackageLicenseFile)" />
66
+ <None Include =" ..\..\images\logo.png" Pack =" true" PackagePath =" \" />
60
67
</ItemGroup >
61
- <ItemGroup >
62
- <None Include =" ..\..\images\logo.png" >
63
- <Pack >True</Pack >
64
- <PackagePath >
65
- </PackagePath >
66
- </None >
67
- </ItemGroup >
68
- <!-- Embedded files -->
69
- ```
70
-
68
+ <!-- Embedded files -->
69
+ </Project >
70
+ ```
0 commit comments