-
Notifications
You must be signed in to change notification settings - Fork 94
Multi-Target build #579
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
Closed
Closed
Multi-Target build #579
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
bc8bb30
Remove Lombiq.NodeJs.Extensions references.
sarahelsaig 9784379
remove package.json and pnpm-lock.yaml.
sarahelsaig 00b2f1f
Remove other node references.
sarahelsaig 8470f32
Use MSBuild Copy task to copy the JS assets.
sarahelsaig 5689e85
Copy CSS asset in OrchardCore.Commerce.Payment.
sarahelsaig 29cee73
Organize copy tasks.
sarahelsaig 2d2462c
Backport to CSS.
sarahelsaig 22a79b6
Apply error notification styling everywhere.
sarahelsaig 67b91e4
Merge remote-tracking branch 'origin/main' into issue/OCC-314
sarahelsaig edca38a
Use lint workflow.
sarahelsaig 1e55f4a
Enable corepack.
sarahelsaig f732d74
Use --no-frozen-lockfile
sarahelsaig 879f11a
Use --no-frozen-lockfile
sarahelsaig 1d84f9d
Fix script-paths.
sarahelsaig d9ea0fd
Fix
sarahelsaig 7aa78e4
Fix pwsh code styling.
sarahelsaig d959efb
Ensure absolute paths.
sarahelsaig c360351
Add deliberate errors to test validation.
sarahelsaig 9120d17
Revert "Add deliberate errors to test validation."
sarahelsaig 2facb95
Update .github/workflows/build-and-test.yml
sarahelsaig 3b3c11e
Build on net9.0 (working)
Skrypt c3daa22
Multi-Target build
Skrypt 41936b2
make .NET 8 DefaultTargetFramework
Skrypt 7c3b107
Remove .net 9
Skrypt 8814c9d
Fix formatting with CSharpier
Skrypt dfd96b3
Fix analysis build issues
Skrypt d29b884
Specify dotnet-version on github workflow
Skrypt f68626e
fix version
Skrypt 242b955
format
Skrypt 397930e
suppress warning IDE0055
Skrypt 6217e11
format
Skrypt 4c7b3f6
add #pragma warning disable IDE0055
Skrypt 7bf7c01
Merge branch 'main' into skrypt/build
Skrypt 5ec1979
Try fix analysis level
Skrypt 571b16b
Try Fix AnalysisLevel
Skrypt dc3e73f
Try Fix AnalysisLevel
Skrypt decbd1a
comments
Skrypt 1b1cf3a
Try fix code analysis
Skrypt a652d58
Remove eol=crlf for .cs files
Skrypt b10e8a2
Remove #pragma warning disable
Skrypt 06799c9
Revert changes from bad merge
Skrypt 183482d
Try AnalysisLevel 9 and LangVersion 13
Skrypt 3cf9c5d
internal classes
Skrypt ce042ae
disable MA0158 for now
Skrypt 3035ed1
Fix formatting
Skrypt aa522d6
sealed
Skrypt a3985aa
Fix tests
Skrypt efd3f4d
internal sealed
Skrypt 01a9f9f
internal sealed
Skrypt 828bcbc
remove disable CA1515
Skrypt 04c317b
add back
Skrypt 96b7f61
default to net8.0
Skrypt 4b65cf2
Add Microsoft.AspNetCore.Mvc.Testing
Skrypt 5c699d9
Merge branch 'main' into skrypt/build
Skrypt 315fdc4
Remove SecurityScanningTest
Skrypt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| * text=auto | ||
| *.cs text eol=crlf | ||
|
|
||
| # Keep LF line endings in pnpm-lock.yaml files to prevent Git from reporting this file as changed after pnpm touches it. | ||
| pnpm-lock.yaml text eol=lf | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,8 @@ | |
|
|
||
| <LombiqHelpfulLibrariesVersion>12.1.0</LombiqHelpfulLibrariesVersion> | ||
| <LombiqTestsUIVersion>12.1.1-alpha.14.osoe-1057</LombiqTestsUIVersion> | ||
| <LangVersion>13.0</LangVersion> | ||
| <AnalysisLevel>9.0</AnalysisLevel> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
@@ -42,8 +44,62 @@ | |
| <PackageVersion Include="OrchardCore.Workflows.Abstractions" Version="$(OrchardCoreVersion)" /> | ||
| <PackageVersion Include="Shouldly" Version="4.3.0" /> | ||
| <PackageVersion Include="Stripe.net" Version="48.1.0" /> | ||
| <PackageVersion Include="System.Text.Json" Version="9.0.4" /> | ||
| <PackageVersion Include="xunit.v3" Version="2.0.2" /> | ||
| <PackageVersion Include="xunit.runner.visualstudio" Version="3.1.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition="'$(TargetFramework)' == 'net8.0'" > | ||
| <!-- Several transitive dependencies on 8.0.4 and lower which is vulnerable --> | ||
| <PackageVersion Include="System.Text.Json" Version="8.0.5" /> | ||
| <!-- Several transitive dependencies on 8.0.0 which has known vulnerabilities --> | ||
| <PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition="'$(TargetFramework)' != 'net8.0'"> | ||
| <PackageVersion Include="System.Text.Json" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.4" /> | ||
| </ItemGroup> | ||
|
|
||
| <!-- These versions are used for the NuGet packages that are dependent on the current TFM --> | ||
| <!-- There may be no TFM in an evaluation phase so we can't use a conditional 'Property' --> | ||
|
|
||
| <ItemGroup Condition="'$(TargetFramework)' != 'net8.0'"> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Twitter" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Owin" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.4" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="9.0.4" /> | ||
|
|
||
| <!-- dotnet/extensions repository --> | ||
| <PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.4.0" /> | ||
|
|
||
| <!-- Serilog.AspNetCore --> | ||
| <PackageVersion Include="Serilog.AspNetCore" Version="9.0.0" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup Condition="'$(TargetFramework)' == 'net8.0'"> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="8.0.15" /> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could clean some of these as OCC doesn't use them. Not sure though if they could not be potentially used. I've copied OC configs for these. |
||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Owin" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="8.0.15" /> | ||
| <PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="8.0.15" /> | ||
|
|
||
| <!-- dotnet/extensions repository --> | ||
| <PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="8.10.0" /> | ||
|
|
||
| <!-- Serilog.AspNetCore --> | ||
| <PackageVersion Include="Serilog.AspNetCore" Version="8.0.3" /> | ||
| </ItemGroup> | ||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Libraries/OrchardCore.Commerce.Abstractions/OrchardCore.Commerce.Abstractions.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ibraries/OrchardCore.Commerce.AddressDataType/OrchardCore.Commerce.AddressDataType.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Libraries/OrchardCore.Commerce.MoneyDataType/OrchardCore.Commerce.MoneyDataType.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Modules/OrchardCore.Commerce.ContentFields/OrchardCore.Commerce.ContentFields.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Modules/OrchardCore.Commerce.Inventory/OrchardCore.Commerce.Inventory.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Modules/OrchardCore.Commerce.Payment.Exactly/OrchardCore.Commerce.Payment.Exactly.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Modules/OrchardCore.Commerce.Payment.Stripe/OrchardCore.Commerce.Payment.Stripe.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Modules/OrchardCore.Commerce.Payment/OrchardCore.Commerce.Payment.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ended up to be the issue with CI. The Analyzer doesn't like it on "comment lines".