Skip to content

The function "ReadAllLines" on type "System.IO.File" is not available for execution as an MSBuild property function #1035

@sboulema-nwwi

Description

@sboulema-nwwi

/Users/runner/.nuget/packages/electronnet.core/0.4.1/build/ElectronNET.MigrationChecks.targets(77,30): error MSB4185: The function "ReadAllLines" on type "System.IO.File" is not available for execution as an MSBuild property function. [/Users/runner/work/***.csproj]

Version: 0.4.1

.NET 10

  • Target: osx-x64

Steps to Reproduce:

  1. Was building using 0.4.0 and everything was working
  2. Updated to 0.4.1
  3. Build in GitHub Action using dotnet publish -p:PublishProfile=osx-x64 -p:Version=XXX

Publish profile:

<?xml version="1.0" encoding="utf-8"?>
<Project>
	<PropertyGroup>
		<Configuration>Release</Configuration>
		<Platform>Any CPU</Platform>
		<DeleteExistingFiles>true</DeleteExistingFiles>
		<PublishProvider>FileSystem</PublishProvider>
		<PublishUrl>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishUrl>
		<WebPublishMethod>FileSystem</WebPublishMethod>
		<_TargetId>Folder</_TargetId>
		<TargetFramework>net10.0</TargetFramework>
		<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
		<ProjectGuid>03d8349c-7e89-42fa-a0d0-83672e658b68</ProjectGuid>
		<SelfContained>true</SelfContained>
	</PropertyGroup>
</Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions