Skip to content

Can't compile project on Linux (non-Windows) with this library added. #32

@RokeJulianLockhart

Description

@RokeJulianLockhart

From the terminal:

Executing task: dotnet build /home/rokejulianlockhart/git_repositories/RTBJK9/20230616T120719+0000 entities/20230616T115744+0000 Beedell.RokeJulianLockhart/20230616T115630+0000 technical/20230626T122241+0000 code/projects/clipboard_manager/clipboard_manager.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary 

MSBuild version 17.6.3+07e294721 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
/usr/share/dotnet/sdk/7.0.305/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets(250,5): error NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so. [/home/rokejulianlockhart/git_repositories/RTBJK9/20230616T120719+0000 entities/20230616T115744+0000 Beedell.RokeJulianLockhart/20230616T115630+0000 technical/20230626T122241+0000 code/projects/clipboard_manager/clipboard_manager.csproj]

 *  The terminal process "dotnet 'build', '/home/rokejulianlockhart/git_repositories/RTBJK9/20230616T120719+0000 entities/20230616T115744+0000 Beedell.RokeJulianLockhart/20230616T115630+0000 technical/20230626T122241+0000 code/projects/clipboard_manager/clipboard_manager.csproj', '/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

This is the project (for reproduction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions