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

Initial implementation cross platform powershell #83

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

AdaskoTheBeAsT
Copy link
Contributor

Initial implementation cross platform powershell

@AdaskoTheBeAsT AdaskoTheBeAsT force-pushed the feature/cross-platform branch 4 times, most recently from d13696a to a9a034e Compare February 21, 2021 18:33
@AdaskoTheBeAsT
Copy link
Contributor Author

Build green :)
I also modified travis and appveyor configuration to be able to launch tests
Please review

@@ -4,6 +4,7 @@ init:

# Build script
build_script:
- cmd: powershell -NoProfile -ExecutionPolicy unrestricted -Command .\appveyor.ps1
Copy link
Owner

@SharpeRAD SharpeRAD Feb 22, 2021

Choose a reason for hiding this comment

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

I've updated the AppVeyor build image to Visual Studio 2019 so .Net 3.1 should now be installed by default. You should be able to drop this command now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I updated script and removed unnecessary script - lets see :)

Copy link
Contributor Author

@AdaskoTheBeAsT AdaskoTheBeAsT Feb 23, 2021

Choose a reason for hiding this comment

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

Unfortunatelly appveyor is not able to find .net core 3.1 for testing purposes
image

Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, I was going off this update from Appveyor that says .NET Core 3.1.406 is included in the latest Visual Studio 2019 image but its hard to argue with that build log.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok I will return back script for now if you don't mind :)

Comment on lines +22 to +25
<group targetFramework=".NETCoreApp3.1">
<dependency id="Microsoft.PowerShell.SDK" version="7.0.5" />
</group>
<group targetFramework=".NETCoreApp5.0">
Copy link
Owner

@SharpeRAD SharpeRAD Feb 22, 2021

Choose a reason for hiding this comment

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

Wouldn't it be better to target :

  • netstandard2.0 over .NETCoreApp3.1
  • net5.0 over .NETCoreApp5.0

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 could not compile netstandard with any of dependencies - anyway if you have some idea please share i will modify pr

Copy link
Owner

Choose a reason for hiding this comment

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

Looking at nuget.org I think we could change .NETCoreApp5.0 to net5.0 as Microsoft.PowerShell.SDK v7.1.2 has net5.0 dependencies but your right I don't think there's anything we can do with .NETCoreApp3.1 as Microsoft.PowerShell.SDK v7.0.5 only has .NETCoreApp3.1 dependencies and the latest preview package jumps straight to net6.0.

The test project would probably still need to be .NETCoreApp5.0 but in theory, the addin could target net5.0. I haven't checked if this would compile though, so I happy to be proven wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I used nuget package explorer - and for example net5.0 is saved as .NETCoreApp5.0. Could you please advise what could I change? test project is also targeting 3 frameworks
nuget01
nuget02
nuget03

@SharpeRAD SharpeRAD merged commit eefd3fa into SharpeRAD:master Feb 25, 2021
@SharpeRAD SharpeRAD mentioned this pull request Feb 25, 2021
@augustoproiete
Copy link

Awesome work @AdaskoTheBeAsT! 🍻

@AdaskoTheBeAsT
Copy link
Contributor Author

@augustoproiete thank you :) happy to help community.

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