Skip to content

Commit a29d0fe

Browse files
committed
update
1 parent 0a5598c commit a29d0fe

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

oneware-extension.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@
122122
]
123123
},
124124
{
125-
"version": "0.99.4",
125+
"version": "0.99.5",
126126
"isPrerelease": true,
127-
"minStudioVersion": "0.99.4",
127+
"minStudioVersion": "0.99.5",
128128
"targets": [
129129
{
130130
"target": "all"

src/OneWare.GhdlExtension/OneWare.GhdlExtension.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>0.99.4</Version>
4+
<Version>0.99.5</Version>
55
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
@@ -11,9 +11,9 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="OneWare.Essentials" Version="0.99.4.0" Private="false" ExcludeAssets="runtime;Native" />
15-
<PackageReference Include="OneWare.UniversalFpgaProjectSystem" Version="0.99.4.0" Private="false" ExcludeAssets="runtime;Native" />
16-
<PackageReference Include="OneWare.OssCadSuiteIntegration" Version="0.99.4.0" Private="true" ExcludeAssets="runtime;Native" />
14+
<PackageReference Include="OneWare.Essentials" Version="0.99.5.0" Private="false" ExcludeAssets="runtime;Native" />
15+
<PackageReference Include="OneWare.UniversalFpgaProjectSystem" Version="0.99.5.0" Private="false" ExcludeAssets="runtime;Native" />
16+
<PackageReference Include="OneWare.OssCadSuiteIntegration" Version="0.99.5.0" Private="true" ExcludeAssets="runtime;Native" />
1717
</ItemGroup>
1818

1919
<Target Name="GenerateCompatibilityFile" AfterTargets="Build">

src/OneWare.GhdlExtension/Services/GhdlService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.Extensions.Logging;
55
using OneWare.Essentials.Enums;
66
using OneWare.Essentials.Models;
7+
using OneWare.Essentials.PackageManager.Compatibility;
78
using OneWare.Essentials.Services;
89
using OneWare.Essentials.ViewModels;
910
using OneWare.GhdlExtension.ViewModels;
@@ -115,7 +116,7 @@ private async Task<bool> InstallGhdlAsync()
115116
if (_packageService.Packages.GetValueOrDefault(GhdlExtensionModule.GhdlPackage.Id!) is {Status: PackageStatus.Available or PackageStatus.UpdateAvailable or PackageStatus.Installing})
116117
{
117118
if (!_settingsService.GetSettingValue<bool>("Experimental_AutoDownloadBinaries")) return false;
118-
if(!await _packageService.InstallAsync(GhdlExtensionModule.GhdlPackage)) return false;
119+
if(await _packageService.InstallAsync(GhdlExtensionModule.GhdlPackage) is {Status: PackageInstallResultReason.Installed or PackageInstallResultReason.AlreadyInstalled}) return false;
119120
SetEnvironment();
120121
return true;
121122
}
@@ -368,7 +369,7 @@ public async Task<bool> SynthAsync(IProjectFile file, string outputType, string
368369
{
369370
if (file.Root is UniversalFpgaProjectRoot root)
370371
{
371-
PackageModel? ghdlPackagemodel = _packageService.Packages.GetValueOrDefault("ghdl");
372+
IPackageState? ghdlPackagemodel = _packageService.Packages.GetValueOrDefault("ghdl");
372373
Version ghdlVersion = new Version(5, 0, 1);
373374
bool directVerilogOutput = (ghdlPackagemodel is not null &&
374375
ghdlVersion.CompareTo(Version.Parse(ghdlPackagemodel.InstalledVersion!.Version!)) <= 0 && outputType.Equals("verilog"));

0 commit comments

Comments
 (0)