Skip to content

Unable to load project in visual studio from pre-release 0.5.2 #1084

Description

@epsnm
  • Version: 0.5.2-pre.115

  • Target: win-x64

Attempt to auto-resolve RuntimeIdentifier create a regression in Visual Studio. Projects are unable to be loaded.

Steps to Reproduce:

  1. Open solution using Visual Studio
error  : Invalid static method invocation syntax: "[System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier". Method 'System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). Check that all parameters are defined, are of the correct type, and are specified in the right order.

Visual Studio might use netstandard2.0 where this property do not exists while available with dotnet cli.

  • Proposed fix : Electron builder resolve by default the RuntimeIdentifier to be the current host target. Remove the default RuntimeIdentifier. Only define electron builder architecture and os when the RuntimeIdentifier is manually set and remove these arguments when undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions