Comments (7)
Maybe add something like the Neo.VM <TargetFrameworks>netstandard2.1;net7.0</TargetFrameworks>
from neo.
Directory.Build.props
does this for us. run dotnet
cli on the solution file or in root
directory of repo.
from neo.
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.
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.
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.
Also you can have look at #3018 for publishing
from neo.
Sure, thus everything is correct and expected. Thanks,
from neo.
Related Issues (20)
- Create a 'getTransactions' RPC endpoint (plugin/extension) HOT 1
- NEO faucet isn't working HOT 6
- stack size can exceed MaxStackSize HOT 3
- a solution should be found for hardfork and upgrading
- ApplicationLogs Plugin: do not replace invalid ApplicationLog's stackitem with `Null` HOT 2
- Local build fails on master branch at 38cc0e9 HOT 2
- Fix `NeoSystem` Dispose HOT 2
- Implement Rollback Mechanism for Neo Node to Sync Plugin Information HOT 13
- Fix coverall problem introduced recently HOT 1
- Error building Neo.CLI HOT 1
- Create Tests with CI / ACTION to ensure local build is working HOT 4
- [V3.7.5 Checklist] This is a checklist for version 3.7.5 hotfix HOT 9
- Fix RPC responses for Hash160 types HOT 7
- How to handle [possible] negative VM refcounter HOT 1
- [Neo Core Event] Define Interfaces for Core Event Handlers
- Comments for Tarjan class HOT 2
- Quality of life CLI options --config-file & --ignore-plugin-network HOT 4
- Add Unit Tests for RpcServer Plugin
- dotnet publish doesn't work in plugin's project path HOT 4
- Wrong debug/release path of plugins HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo.