Support Miniscript as a separate dll.#675
Support Miniscript as a separate dll.#675joemphilips wants to merge 40 commits intoMetacoSA:masterfrom
Conversation
|
I think you should not manually touch nuspec. The nuspec is generated by MSBuild. There is MSBuild properties to influence the nuget package. I think you should use this. |
|
I've been trying a solution 2 in this answer (and solutions in the issue linked from there.)But this does not work in case we have circular dependency. I will keep looking. But I'm not sure there is a way to workaround without |
NBitcoin/NBitcoin.csproj
Outdated
| </PropertyGroup> | ||
| <PropertyGroup> | ||
| <TargetFrameworks>net461;net452;netstandard1.3;netstandard1.1;netcoreapp2.1;netstandard2.0</TargetFrameworks> | ||
| <TargetFrameworks>netstandard1.3;netstandard1.1;netcoreapp2.1;netstandard2.0</TargetFrameworks> |
There was a problem hiding this comment.
why removing net4xx profiles?
There was a problem hiding this comment.
Uups. By mistake. I will fix
| <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\NBitcoin.xml</DocumentationFile> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- Include Miniscript dll only if it is ready. --> |
There was a problem hiding this comment.
hacky workaround to include Miniscript.dll to .nupkg as a separate dll
NBitcoin.Miniscript/Program.fs
Outdated
| [<EntryPoint>] | ||
| let main argv = | ||
| printfn "Hello World from F#!" | ||
| 0 // return an integer exit code |
There was a problem hiding this comment.
I'm guessing you can remove this file now
| open System.Reflection | ||
|
|
||
| [<assembly:AssemblyTitleAttribute("FNBitcoin.Tests")>] | ||
| [<assembly:AssemblyProductAttribute("FNBitcoin")>] |
| let AssemblyTitle = "FNBitcoin.Tests" | ||
|
|
||
| [<Literal>] | ||
| let AssemblyProduct = "FNBitcoin" |
| Expect.isTrue true "skip" | ||
| ] | ||
|
|
||
| *) |
|
|
||
| private TransactionSignature DummyKeyFn(PubKey key) => null; | ||
| public void ShouldSatisfyMiniscript() | ||
| { |
There was a problem hiding this comment.
FYI mixed tabs and spaces, misconfigured editor? ;)
There was a problem hiding this comment.
😭
I will fix later.
* Rename `Policy` -> `AbstractPolicy` * Model `ProviderSet` member as optional * Reorganize Miniscript as facade module.
* Tweak public api visibility in Miniscript. * Add Unsafe version to Miniscript.Satisfy * Implement satisfyCost in `Satisfy.fs` s Please enter the commit message for your changes. Lines starting
* Move every PSBT-related tests to NBitcoin.Tests.Miniscript * Add reference from NBitcoin.Tests.Miniscript to NBitcoin.Tests|TestFramework * Append TargetFrameworks `netcoreapp2.1;netcoreapp2.2` to TestFramework * Rewrite PSBT.Finalize as an extension method in NBitcoin.Miniscript
|
Guys, what is miniscript? I keep seeing this issue in my notifications for quite a while:) |
|
@nopara73 You can see general overview here. The page also has links to whole other resources. I couldn't found reference implementation by Sipa so I'm treating rust-miniscript as a reference. |
|
Closing in favor of #684 |
NBitcoinnamespaceNBitcoin.nuspecfile so that I can includeMiniscript.dllto NBitcoin's nupkg..fsproj