Git Product home page Git Product logo

Comments (7)

vncoelho avatar vncoelho commented on July 1, 2024

Maybe add something like the Neo.VM <TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 1, 2024

Directory.Build.props does this for us. run dotnet cli on the solution file or in root directory of repo.

from neo.

vncoelho avatar vncoelho commented on July 1, 2024

I tried and got the same error, but I am not a real expert in C# like you

can you provide the command and steps?

from neo.

vncoelho avatar vncoelho commented on July 1, 2024

I am using a dockerfile

WORKDIR /opt/neoLib/src/Neo.CLI
RUN dotnet publish -c Release -f net7.0
WORKDIR /
1.592 /usr/share/dotnet/sdk/7.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CrossTargeting.targets(27,5): error NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify the framework for the published application. [/opt/neoLib/src/Neo.CLI/Neo.CLI.csproj]

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 1, 2024

But that error is normal, because of the way we configured the Directory.Build.props. You have to put the target framework, in that case because we support dotnet standard 2.1 and dotnet 7.0.

The current project targets multiple frameworks, you must specify the framework for the published application.

You can do publish like you been.

OR

In the root i do:

> dotnet build .\src\neo.cli\neo.cli.csproj --output ./bin

from neo.

cschuchardt88 avatar cschuchardt88 commented on July 1, 2024

Also you can have look at #3018 for publishing

from neo.

vncoelho avatar vncoelho commented on July 1, 2024

Sure, thus everything is correct and expected. Thanks,

from neo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.