Skip to content

cleanup src #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2020
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
8 changes: 4 additions & 4 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
dotnet-version: 3.1.200

- name: Restore library
run: dotnet restore BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true
run: dotnet restore src/BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true

- name: Build library
run: dotnet build BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet build src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Test library
run: dotnet test BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet test src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Pack library
run: dotnet pack BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet pack src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Restore demo
run: dotnet restore demo/Demo.sln -p:BLLUseLocalNugetPackages=true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
dotnet-version: 3.1.200

- name: Restore library
run: dotnet restore BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true
run: dotnet restore src/BlazorLazyLoading.sln -p:BLLUseLocalNugetPackages=true

- name: Build library
run: dotnet build BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet build src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Test library
run: dotnet test BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet test src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Pack library
run: dotnet pack BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true
run: dotnet pack src/BlazorLazyLoading.sln -c Release -p:BLLUseLocalNugetPackages=true

- name: Restore demo
run: dotnet restore demo/Demo.sln -p:BLLUseLocalNugetPackages=true
Expand Down
8 changes: 1 addition & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<Project>

<PropertyGroup>
<!-- Polyfill $(SolutionDir) -->
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>

<!-- Convert $(BLLUseLocalNugetPackages) to bool -->
<PropertyGroup>
<BLLUseLocalNugetPackages Condition="'$(BLLUseLocalNugetPackages)' == ''">false</BLLUseLocalNugetPackages>
<RepoDir Condition="'$(RepoDir)' == ''">$(MSBuildThisFileDirectory)</RepoDir>
</PropertyGroup>

</Project>
2 changes: 0 additions & 2 deletions Directory.Build.targets

This file was deleted.

2 changes: 1 addition & 1 deletion demo/BlazorLazyLoading.Components.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<!-- Use Project reference -->
<ItemGroup Condition="!$(BLLUseLocalNugetPackages)">
<ProjectReference Include="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Components\BlazorLazyLoading.Components.csproj" />
<ProjectReference Include="$(SolutionDir)..\src\nuget\BlazorLazyLoading.Components\BlazorLazyLoading.Components.csproj" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions demo/BlazorLazyLoading.Module.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<!-- Use Project reference -->
<ItemGroup Condition="!$(BLLUseLocalNugetPackages)">
<ProjectReference Include="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Module\BlazorLazyLoading.Module.csproj" PrivateAssets="all" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\nuget\BlazorLazyLoading.Module\BlazorLazyLoading.Module.csproj" PrivateAssets="all" />
</ItemGroup>
<Import Condition="!$(BLLUseLocalNugetPackages)" Project="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Module\build\BlazorLazyLoading.Module.props" />
<Import Condition="!$(BLLUseLocalNugetPackages)" Project="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Module\build\BlazorLazyLoading.Module.targets" />
<Import Condition="!$(BLLUseLocalNugetPackages)" Project="$(MSBuildThisFileDirectory)..\src\nuget\BlazorLazyLoading.Module\build\BlazorLazyLoading.Module.props" />
<Import Condition="!$(BLLUseLocalNugetPackages)" Project="$(MSBuildThisFileDirectory)..\src\nuget\BlazorLazyLoading.Module\build\BlazorLazyLoading.Module.targets" />
</Project>
2 changes: 1 addition & 1 deletion demo/BlazorLazyLoading.Server.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<!-- Use Project reference -->
<ItemGroup Condition="!$(BLLUseLocalNugetPackages)">
<ProjectReference Include="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Server\BlazorLazyLoading.Server.csproj" PrivateAssets="all" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\nuget\BlazorLazyLoading.Server\BlazorLazyLoading.Server.csproj" PrivateAssets="all" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion demo/BlazorLazyLoading.Wasm.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<!-- Use Project reference -->
<ItemGroup Condition="!$(BLLUseLocalNugetPackages)">
<ProjectReference Include="$(MSBuildThisFileDirectory)..\nuget\BlazorLazyLoading.Wasm\BlazorLazyLoading.Wasm.csproj" PrivateAssets="all" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\src\nuget\BlazorLazyLoading.Wasm\BlazorLazyLoading.Wasm.csproj" PrivateAssets="all" />
</ItemGroup>
</Project>
10 changes: 5 additions & 5 deletions demo/Demo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BlazorLazyLoading", "BlazorLazyLoading", "{2DFA918F-9417-49B8-9FDA-E2231179978C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Module", "..\nuget\BlazorLazyLoading.Module\BlazorLazyLoading.Module.csproj", "{E3E28F5C-3F96-4634-9528-10C23F2478DF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Module", "..\src\nuget\BlazorLazyLoading.Module\BlazorLazyLoading.Module.csproj", "{E3E28F5C-3F96-4634-9528-10C23F2478DF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Server", "..\nuget\BlazorLazyLoading.Server\BlazorLazyLoading.Server.csproj", "{6C5945E8-44F9-4898-AB78-FF0D85F5515B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Server", "..\src\nuget\BlazorLazyLoading.Server\BlazorLazyLoading.Server.csproj", "{6C5945E8-44F9-4898-AB78-FF0D85F5515B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Wasm", "..\nuget\BlazorLazyLoading.Wasm\BlazorLazyLoading.Wasm.csproj", "{B78FC2FE-F107-49AB-95FC-E7F4559C879A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Wasm", "..\src\nuget\BlazorLazyLoading.Wasm\BlazorLazyLoading.Wasm.csproj", "{B78FC2FE-F107-49AB-95FC-E7F4559C879A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Components", "..\src\nuget\BlazorLazyLoading.Components\BlazorLazyLoading.Components.csproj", "{83419656-8137-4AEB-9A5B-74C7B85621F6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ModulesHost", "ModulesHost\ModulesHost.csproj", "{9B062109-5E21-46CD-BDD1-315529E585E8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Demo", "Demo", "{2587AE99-7624-47E4-B6B8-79EC67346F67}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorLazyLoading.Components", "..\nuget\BlazorLazyLoading.Components\BlazorLazyLoading.Components.csproj", "{83419656-8137-4AEB-9A5B-74C7B85621F6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hosts", "Hosts", "{E503BF43-DE57-4DB6-AF93-A5F765C94154}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "LazyAreas", "LazyAreas", "{566D14F1-B2FB-463C-A627-C5EB23B763B7}"
Expand Down
8 changes: 8 additions & 0 deletions demo/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<Project>

<!--
Enable hierarchical 'Directory.Build.props'
This must be imported at the top of the file
-->
<Import
Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />

<Import Project="LocalNugetVersion.props" />

<PropertyGroup>
Expand Down
5 changes: 2 additions & 3 deletions BlazorLazyLoading.sln → src/BlazorLazyLoading.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "global", "global", "{AE8E1C
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
GitVersion.yml = GitVersion.yml
nuget.config = nuget.config
EndProjectSection
Expand All @@ -51,9 +50,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Manifest", "Manifest", "{2B
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "demo", "demo", "{38184F2E-7DDA-4F92-B730-85637350E56F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerHost", "demo\ServerHost\ServerHost.csproj", "{2EF3EB2F-0E00-4554-8EDC-7CEEE5C7B899}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerHost", "..\demo\ServerHost\ServerHost.csproj", "{2EF3EB2F-0E00-4554-8EDC-7CEEE5C7B899}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WasmHost", "demo\WasmHost\WasmHost.csproj", "{D2DF44FE-098D-48EF-925B-F71DFDD7134D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WasmHost", "..\demo\WasmHost\WasmHost.csproj", "{D2DF44FE-098D-48EF-925B-F71DFDD7134D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
11 changes: 9 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />

<!-- automatically create "Internal" packages -->
<Import Project="$(MSBuildThisFileDirectory)../nuget/NugetCommon.props" />
<PropertyGroup>
<!-- Polyfill $(SolutionDir) -->
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>

<!-- Convert $(BLLUseLocalNugetPackages) to bool -->
<PropertyGroup>
<BLLUseLocalNugetPackages Condition="'$(BLLUseLocalNugetPackages)' == ''">false</BLLUseLocalNugetPackages>
</PropertyGroup>

</Project>
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion nuget.config → src/nuget.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="local-repo" value="output/nuget/" />
<add key="local-repo" value="../output/nuget/" />
</packageSources>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions src/nuget/BlazorLazyLoading.Wasm/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
File renamed without changes.
6 changes: 3 additions & 3 deletions nuget/NugetCommon.props → src/nuget/NugetCommon.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</ItemGroup>

<PropertyGroup>
<PackageOutputDir>$(MSBuildThisFileDirectory)..\output\nuget</PackageOutputDir>
<PackageOutputPath>$(MSBuildThisFileDirectory)..\output\nuget</PackageOutputPath>
<PackageOutputDir>$(RepoDir)output\nuget</PackageOutputDir>
<PackageOutputPath>$(RepoDir)output\nuget</PackageOutputPath>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -68,7 +68,7 @@
</ItemGroup>

<WriteLinesToFile
File="$(MSBuildThisFileDirectory)../demo/LocalNugetVersion.props"
File="$(RepoDir)demo/LocalNugetVersion.props"
Lines="@(LocalNugetVersionProps)"
Overwrite="true" />
</Target>
Expand Down
File renamed without changes
7 changes: 7 additions & 0 deletions src/src/AssemblyLoader.Server/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions src/src/AssemblyLoader.Wasm/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions src/src/AssemblyLoader/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
14 changes: 14 additions & 0 deletions src/src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project>

<!--
Enable hierarchical 'Directory.Build.props'
This must be imported at the top of the file
-->
<Import
Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />

<!-- automatically create "Internal" packages -->
<Import Project="$(MSBuildThisFileDirectory)../nuget/NugetCommon.props" />

</Project>
7 changes: 7 additions & 0 deletions src/src/LazyComponents/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
File renamed without changes.
7 changes: 7 additions & 0 deletions src/src/ManifestGenerator/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions src/src/ManifestReader/demo/LocalNugetVersion.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Autogenerated -->
<!-- Please build 'BlazorLazyLoading.sln' first -->
<Project>
<PropertyGroup>
<BLLVersion>1.1.1-cleanup-src.1+2</BLLVersion>
</PropertyGroup>
</Project>