Skip to content

missing version.txt for build process #8

@HVinther

Description

@HVinther

I'm unable to build the latest release on Fedora 42. Following the Build on PC / Installation instruction I have installed the dotnet 8.0 sdk and added the nbgv package.

Though when I try to build the package using the listed command I get the following error:

dotnet build --version-suffix 1.0.3.20886 -o bin
MSBuild version 17.8.22+bfbb05667 for .NET
/home/hans/Projekter/cyz2json/Directory.Build.props(3,5): error MSB4184: The expression "[System.IO.File]::ReadAllText(/home/hans/Projekter/cyz2json/version.txt)" cannot be evaluated. Could not find file '/home/hans/Projekter/cyz2json/version.txt'. [/home/hans/Projekter/cyz2json/Cyz2Json/Cyz2Json.csproj]

Build FAILED.

/home/hans/Projekter/cyz2json/Directory.Build.props(3,5): error MSB4184: The expression "[System.IO.File]::ReadAllText(/home/hans/Projekter/cyz2json/version.txt)" cannot be evaluated. Could not find file '/home/hans/Projekter/cyz2json/version.txt'. [/home/hans/Projekter/cyz2json/Cyz2Json/Cyz2Json.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.38

I tried to create a version.txt file by nbgv get-version > version.txt but this causes nbgv get-version to fail.

This might simply be down to me being unfamiliar with the dotnet framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions