Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DynamoVisualProgramming.ZeroTouchLibrary.nuspec to support multitarget #14943

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

pinzart90
Copy link
Contributor

Add netstandard2.0 target for ZeroTouchLibrary
ZeroTouchLibrary could be used for libraries that need to support both 2.19 and 3.0 versions of Dynamo

Copy link

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@pinzart90 pinzart90 changed the title Update DynamoVisualProgramming.ZeroTouchLibrary.nuspec to suopport multitarget Update DynamoVisualProgramming.ZeroTouchLibrary.nuspec to support multitarget Feb 15, 2024
Comment on lines 16 to 18
<group targetFramework="$TargetFramework$">
<dependency id="DynamoVisualProgramming.DynamoServices" version="$Version$"/>
</group>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to remove this block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need both target framework groups :
netstandard2.0 and whatever current dynamo will target
netstandard2.0 will not have the DynamoUnits assembly (since that is targeting net6)

Comment on lines 28 to 29
<file src="ProtoGeometry.dll" target="lib\$TargetFramework$" />
<file src="ProtoGeometry.xml" target="lib\$TargetFramework$" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and these two lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are needed for the net8 configurations
Nuget does not know to pick some assemblies form netstandard and the rest from net8. It goes for one targetframework or the other. So both need all assemblies

Copy link
Contributor

@aparajit-pratap aparajit-pratap Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So does this nuspec create a multi-targeting nuget package targeting net8 containing all these assemblies and also targeting netstandard2 with only protogeometry and dynamoservices assemblies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will allow some zero touch packages to target nestandard2.0 so that it can be compatible with both Dynamo 2.19 and Dynamo 3.0

@pinzart90 pinzart90 merged commit 6538bc7 into master Feb 16, 2024
22 checks passed
@pinzart90 pinzart90 deleted the multitrarget_zeroTouch_nuget branch February 16, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants