Skip to content

Commit

Permalink
Build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Sep 26, 2023
1 parent e532323 commit 28d8801
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

<PackageIcon>usync-logo.png</PackageIcon>

<NoWarn>CS0618</NoWarn>

<PackageReleaseNotes>
<![CDATA[9.0 : Dotnet core version
- 9.1 : Net 5/6 targets
Expand Down
4 changes: 3 additions & 1 deletion dist/build-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ Write-Host "Config :" $env
Write-Host "Folder :" $outFolder
"----------------------------------"; ""

$sln_name = "..\uSync_12.sln";

""; "##### Restoring project"; "--------------------------------"; ""
dotnet restore ..

""; "##### Building project"; "--------------------------------"; ""
dotnet build ..\uSync.sln -c $env -p:Version=$fullVersion -p:ContinuousIntegrationBuild=true
dotnet build $sln_name -c $env -p:Version=$fullVersion -p:ContinuousIntegrationBuild=true

""; "##### Generating the json schema"; "----------------------------------" ; ""
dotnet run -c $env --project ..\uSync.SchemaGenerator\uSync.SchemaGenerator.csproj --no-build
Expand Down
20 changes: 7 additions & 13 deletions uSync.BackOffice/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:uSync.BackOffice.Notifications.uSyncApplicationStartingHandler</Target>
<Left>lib/net6.0/uSync.BackOffice.dll</Left>
<Right>lib/net6.0/uSync.BackOffice.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0001</DiagnosticId>
<Target>T:uSync.BackOffice.Notifications.uSyncServerVariablesHandler</Target>
<Left>lib/net6.0/uSync.BackOffice.dll</Left>
<Right>lib/net6.0/uSync.BackOffice.dll</Right>
<Target>T:uSync.BackOffice.Controllers.Trees.uSyncTreeController</Target>
<Left>lib/net7.0/uSync.BackOffice.dll</Left>
<Right>lib/net7.0/uSync.BackOffice.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:uSync.BackOffice.Controllers.uSyncDashboardApiController.#ctor(Microsoft.Extensions.Configuration.IConfiguration,Umbraco.Cms.Core.Cache.AppCaches,Microsoft.AspNetCore.Hosting.IWebHostEnvironment,Umbraco.Cms.Core.Services.ILocalizedTextService,Microsoft.Extensions.Logging.ILogger{uSync.BackOffice.Controllers.uSyncDashboardApiController},Umbraco.Cms.Core.Composing.ITypeFinder,uSync.BackOffice.uSyncService,uSync.BackOffice.SyncHandlers.SyncHandlerFactory,Microsoft.AspNetCore.SignalR.IHubContext{uSync.BackOffice.Hubs.SyncHub},uSync.BackOffice.Configuration.uSyncConfigService)</Target>
<Left>lib/net6.0/uSync.BackOffice.dll</Left>
<Right>lib/net6.0/uSync.BackOffice.dll</Right>
<Target>M:uSync.BackOffice.uSyncService.#ctor(Microsoft.Extensions.Logging.ILogger{uSync.BackOffice.uSyncService},Umbraco.Cms.Core.Events.IEventAggregator,uSync.BackOffice.Configuration.uSyncConfigService,uSync.BackOffice.SyncHandlers.SyncHandlerFactory,uSync.BackOffice.Services.SyncFileService,uSync.BackOffice.Services.uSyncEventService,Umbraco.Cms.Core.Cache.AppCaches,Umbraco.Cms.Core.Scoping.ICoreScopeProvider)</Target>
<Left>lib/net7.0/uSync.BackOffice.dll</Left>
<Right>lib/net7.0/uSync.BackOffice.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
</Suppressions>
4 changes: 2 additions & 2 deletions uSync.BackOffice/uSync.BackOffice.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@


<!-- Package Validation -->
<!--
<PropertyGroup>
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>

<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>12.0.0</PackageValidationBaselineVersion>
<EnableStrictModeForCompatibleFrameworksInPackage>true</EnableStrictModeForCompatibleFrameworksInPackage>
<EnableStrictModeForCompatibleTfms>true</EnableStrictModeForCompatibleTfms>
</PropertyGroup>
-->
</Project>
4 changes: 3 additions & 1 deletion uSync.Core/uSync.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@

<!-- Package Validation -->
<PropertyGroup>
<GenerateCompatibilitySuppressionFile>true</GenerateCompatibilitySuppressionFile>

<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>11.0.0</PackageValidationBaselineVersion>
<PackageValidationBaselineVersion>12.0.0</PackageValidationBaselineVersion>
<EnableStrictModeForCompatibleFrameworksInPackage>true</EnableStrictModeForCompatibleFrameworksInPackage>
<EnableStrictModeForCompatibleTfms>true</EnableStrictModeForCompatibleTfms>
</PropertyGroup>
Expand Down

0 comments on commit 28d8801

Please sign in to comment.