Skip to content

Commit 446dbc6

Browse files
committed
Upgrade .net Core example to .net 6
1 parent c2b7466 commit 446dbc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/Python.Included.Example.NetCore/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ static async Task Main(string[] args)
2525
await Installer.SetupPython();
2626

2727
// install pip3 for package installation
28-
Installer.TryInstallPip();
28+
await Installer.TryInstallPip();
2929

3030
// download and install Spacy from the internet
31-
Installer.PipInstallModule("spacy");
31+
await Installer.PipInstallModule("spacy");
3232

3333
// ok, now use pythonnet from that installation
3434
PythonEngine.Initialize();

examples/Python.Included.Example.NetCore/Python.Included.Example.NetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
77
<ProjectReference Include="..\..\Python.Included\Python.Included.csproj" />

0 commit comments

Comments
 (0)