Skip to content

Commit

Permalink
refactor: Restructure repo (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
gintsk and viceice authored May 15, 2024
1 parent 9aa80ea commit 5d54f34
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ jobs:
run: dotnet restore

- name: build
run: dotnet build --no-restore
run: dotnet build -c release --no-restore

- name: pack
run: dotnet pack -o bin
run: dotnet pack -o bin --no-build

- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
Expand Down
10 changes: 10 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>
<PropertyGroup>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>

<PropertyGroup Label="Assembly Signing">
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MimeMapping.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions MimeMapping.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{063EE5BF-8922-4280-8DFC-1226E9298F35}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MimeMapping.Tests", "test\MimeMapping.Tests\MimeMapping.Tests.csproj", "{063EE5BF-8922-4280-8DFC-1226E9298F35}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MimeMapping", "MimeMapping.csproj", "{42893F4D-DE5F-4132-A408-E90BFF840342}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MimeMapping", "src\MimeMapping\MimeMapping.csproj", "{42893F4D-DE5F-4132-A408-E90BFF840342}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 1 addition & 13 deletions MimeMapping.csproj → src/MimeMapping/MimeMapping.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ https://learn.microsoft.com/dotnet/api/system.web.mimemapping.getmimemapping
<Authors>Matthew Little</Authors>
<Company />
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>MimeMapping.snk</AssemblyOriginatorKeyFile>

<!-- https://github.com/dotnet/sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -41,17 +39,7 @@ https://learn.microsoft.com/dotnet/api/system.web.mimemapping.getmimemapping
</PropertyGroup>

<ItemGroup>
<Compile Remove="Test\**" />
<EmbeddedResource Remove="Test\**" />
<None Remove="Test\**" />
</ItemGroup>

<ItemGroup>
<None Remove=".editorconfig" />
<None Remove=".gitignore" />
<None Remove="LICENSE.md" />
<None Remove="**/TestResults/**" />
<None Include="README.md" Pack="true" PackagePath="\" />
<None Include="../../README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;net48</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSUnixLike())">net8.0;net6.0</TargetFrameworks>
<RunSettingsFilePath>$(MSBuildThisFileDirectory)/test.runsettings</RunSettingsFilePath>
<RunSettingsFilePath>$(MSBuildThisFileDirectory)..\test.runsettings</RunSettingsFilePath>
<LangVersion>latest</LangVersion>
</PropertyGroup>

Expand All @@ -15,6 +15,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MimeMapping.csproj" />
<ProjectReference Include="..\..\src\MimeMapping\MimeMapping.csproj" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5d54f34

Please sign in to comment.