Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
dotnet-version: 10.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down Expand Up @@ -52,4 +52,4 @@ jobs:
versions-to-fetch: 20
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


4 changes: 2 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
dotnet-version: 10.0.x

- name: Pack
run: dotnet pack -c Release -o Build
Expand All @@ -33,4 +33,4 @@ jobs:
run: dotnet nuget push --no-symbols --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg

- name: Nuget push
run: dotnet nuget push --skip-duplicate -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json Build/*.nupkg
run: dotnet nuget push --skip-duplicate -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json Build/*.nupkg
31 changes: 26 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
.vs/
.idea/
bin/
obj/
Build/

# Files for local dev
[Bb]in/
[Oo]bj/
[Bb]uild/
Thumbs.db
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.cache
*.ilk
*.log
*.sbr
[Dd]ebug*/
[Rr]elease*/
_ReSharper*/
packages/
.tmp/
tmp/
*.user
*.local.json
.terraform/
*.backup
*.bak
.venv/
**/__pycache__/

# Verify
# https://github.com/VerifyTests/Verify#received-and-verified
Expand Down
20 changes: 20 additions & 0 deletions .standard_content.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://github.com/LordMike/MBW.Tools.GhStandardContent/spec/StandardContent.json",
"meta": {
"repo": "LordMike/MBW.Libraries.DeviceIOControlLib",
"profiles": [
"standardContent",
"standardDotnet",
"standardNugetPush"
],
"files": [
".editorconfig",
".gitattributes",
".github/workflows/dotnet.yml",
".github/workflows/nuget.yml",
".gitignore",
"Directory.Build.props"
],
"last_updated": "2026-02-01T15:40:24.3119374+00:00"
}
}
2 changes: 1 addition & 1 deletion DemoApplication/DemoApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\_Imports\Test.targets" />

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand Down
41 changes: 19 additions & 22 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

<PropertyGroup>
<LangVersion>latest</LangVersion>
<DefaultTargetFramework>net10.0</DefaultTargetFramework>
</PropertyGroup>

<!-- Common NuGet properties -->
<PropertyGroup>
<Authors>LordMike</Authors>
Expand All @@ -14,45 +15,41 @@
<!-- Release stuff -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Ignore warning CS1591 'Missing XML comment for publicly visible type or member' -->
<NoWarn>$(NoWarn);CS1591</NoWarn>

<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<MinVerTagPrefix>v</MinVerTagPrefix>

<!-- Github packages does not support symbols, so we embed pdbs in nupkg (https://github.community/t/does-github-packages-dotnet-nuget-supports-to-publish-snupkg/123286/6) -->
<AllowedOutputExtensionsInPackageBuildOutputFolder Condition="'$(Configuration)'=='Debug'">$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>


<!-- Performance -->
<PropertyGroup>
<CopyRetryCount>1</CopyRetryCount>
<CopyRetryDelayMilliseconds>500</CopyRetryDelayMilliseconds>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="all" />
<!-- Private packages, for builds only, not to be included in dependencies -->
<PackageReference Include="Jetbrains.Annotations" Version="2025.2.4" PrivateAssets="all" />
<PackageReference Include="MinVer" Version="7.0.0" PrivateAssets="all" />
</ItemGroup>

<!-- Deterministic build paths, https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/#deterministic-builds -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>


<!-- Sourcelink -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.102" PrivateAssets="All"/>
</ItemGroup>

<!-- Set copying files etc. to timeout faster -->
<PropertyGroup>
<CopyRetryCount>2</CopyRetryCount>
<CopyRetryDelayMilliseconds>500</CopyRetryDelayMilliseconds>
</PropertyGroup>

<!-- Ensure AssemblyInfo.cs can be included in <EmbedUntrackedSources> https://github.com/dotnet/sourcelink/issues/572 -->
<Target Name="_workaroundMsBuild1479" BeforeTargets="BeforeCompile" AfterTargets="GenerateAssemblyInfo"></Target>

<Import Project="_Imports\Local.targets" Condition="Exists('_Imports\Local.targets')" />

</Project>
Loading