Skip to content

Commit a8f526c

Browse files
committed
Upgrade fo-dicom to 5.0.1
1 parent 71f1e2d commit a8f526c

File tree

54 files changed

+277
-1195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+277
-1195
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ First, export the following environment variable before executing `dotnet run`:
2121
export DOTNET_ENVIRONMENT=Development
2222
```
2323

24+
```powershell
25+
$env:DOTNET_ENVIRONMENT="Development"
26+
```
27+
2428
### Building MONAI Deploy Informatics Gateway
2529

2630
```bash

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ pushd $SCRIPT_DIR/src/CLI
2929
# echo "Building Informatics Gateway CLI: win-x64"
3030
# dotnet publish -r win-x64 -c Release -o $SCRIPT_DIR/cli/win-x64
3131
echo "Building Informatics Gateway CLI: linux-x64"
32-
dotnet publish -r linux-x64 -c Release -o $SCRIPT_DIR/cli/linux-x64
32+
dotnet publish --self-contained -r linux-x64 -c Release -o $SCRIPT_DIR/cli/linux-x64
3333
popd

src/Api/IsExternalinit.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
namespace System.Runtime.CompilerServices
1+
// Copyright 2021 MONAI Consortium
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
12+
namespace System.Runtime.CompilerServices
213
{
314
using System.ComponentModel;
15+
416
/// <summary>
517
/// Reserved to be used by the compiler for tracking metadata.
618
/// This class should not be used by developers in source code.
@@ -9,4 +21,4 @@
921
internal static class IsExternalInit
1022
{
1123
}
12-
}
24+
}

src/Api/Monai.Deploy.InformaticsGateway.Api.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
<PropertyGroup>
1414
<RootNamespace>Monai.Deploy.InformaticsGateway.Api</RootNamespace>
15-
<TargetFramework>netstandard2.0</TargetFramework>
15+
<TargetFramework>netstandard2.1</TargetFramework>
1616
<LangVersion>9.0</LangVersion>
1717
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
18+
<IsTrimmable>true</IsTrimmable>
1819
</PropertyGroup>
1920

2021
<ItemGroup>

src/CLI/Monai.Deploy.InformaticsGateway.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<TargetFramework>net6.0</TargetFramework>
1616
<PublishSingleFile>true</PublishSingleFile>
1717
<SelfContained>true</SelfContained>
18-
<PublishTrimmed>true</PublishTrimmed>
18+
<PublishTrimmed>false</PublishTrimmed>
1919
<PublishReadyToRun>true</PublishReadyToRun>
2020
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
2121
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>

src/CLI/Options/Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public class Common
2424
public static readonly string MountedConfigFilePath = Path.Combine(ContainerApplicationRootPath, "appsettings.json");
2525
public static readonly string MountedDatabasePath = "/database";
2626
public static readonly string ConfigFilePath = Path.Combine(MigDirectory, "appsettings.json");
27-
public static readonly string AppSettingsResourceName = $"{Assembly.GetEntryAssembly().GetTypes().First().Namespace}.Resources.appsettings.json";
27+
public static readonly string AppSettingsResourceName = $"{typeof(Program).Namespace}.Resources.appsettings.json";
2828
}
2929
}

src/CLI/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
using System.CommandLine.Hosting;
2222
using System.CommandLine.Parsing;
2323
using System.CommandLine.Rendering;
24-
using System.Diagnostics.CodeAnalysis;
2524
using System.IO.Abstractions;
2625
using System.Threading.Tasks;
2726

2827
namespace Monai.Deploy.InformaticsGateway.CLI
2928
{
30-
partial class Program
29+
internal partial class Program
3130
{
3231
private static async Task<int> Main(string[] args)
3332
{

src/Client.Common/Monai.Deploy.InformaticsGateway.Client.Common.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
<Project Sdk="Microsoft.NET.Sdk">
1313

1414
<PropertyGroup>
15-
<TargetFramework>netstandard2.0</TargetFramework>
15+
<TargetFramework>netstandard2.1</TargetFramework>
1616
<RootNamespace>Monai.Deploy.InformaticsGateway.Client.Common</RootNamespace>
17-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
17+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
18+
<IsTrimmable>true</IsTrimmable>
1819
</PropertyGroup>
1920

2021
<ItemGroup>
@@ -28,4 +29,4 @@
2829
<None Remove="Test\**" />
2930
</ItemGroup>
3031

31-
</Project>
32+
</Project>

src/Client/Monai.Deploy.InformaticsGateway.Client.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
<Project Sdk="Microsoft.NET.Sdk">
1212

1313
<PropertyGroup>
14-
<TargetFramework>netstandard2.0</TargetFramework>
14+
<TargetFramework>netstandard2.1</TargetFramework>
1515
<RootNamespace>Monai.Deploy.InformaticsGateway.Client</RootNamespace>
16-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
16+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
17+
<IsTrimmable>true</IsTrimmable>
1718
</PropertyGroup>
1819

1920
<ItemGroup>
@@ -34,4 +35,4 @@
3435
<ProjectReference Include="..\Api\Monai.Deploy.InformaticsGateway.Api.csproj" />
3536
<ProjectReference Include="..\Client.Common\Monai.Deploy.InformaticsGateway.Client.Common.csproj" />
3637
</ItemGroup>
37-
</Project>
38+
</Project>

src/Client/Test/ServiceTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class ServiceTestBase
2222
{
2323
protected static HttpClient SetupHttpClientMock(string baseUrl, string expectedUrl, HttpMethod httpMethod, HttpResponseMessage httpResponse)
2424
{
25-
expectedUrl = Uri.EscapeUriString(expectedUrl);
25+
expectedUrl = Uri.EscapeDataString(expectedUrl);
2626
var mockHandler = new Mock<HttpMessageHandler>();
2727
mockHandler.Protected()
2828
.Setup<Task<HttpResponseMessage>>("SendAsync",

0 commit comments

Comments
 (0)