microsoft / SimpleStubs

*SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver.
Other
66 stars 29 forks source link

Update NuGet dependencies #65

Closed timpalpant closed 2 years ago

timpalpant commented 2 years ago

I have been trying to use SimpleStubs in VS 2019, but running into #63.

This PR updates the NuGet references as suggested in that issue. I used the NuGet manager in VS 2022 and updated all dependencies to their latest versions. The existing unit tests all pass.

I am not sure how to verify whether this fixes the issue in #63 without publishing a new package, but would appreciate any input or advice.

ghost commented 2 years ago

CLA assistant check
All CLA requirements met.

nehme-bilal-ah commented 2 years ago

I have been trying to use SimpleStubs in VS 2019, but running into #63.

This PR updates the NuGet references as suggested in that issue. I used the NuGet manager in VS 2022 and updated all dependencies to their latest versions. The existing unit tests all pass.

I am not sure how to verify whether this fixes the issue in #63 without publishing a new package, but would appreciate any input or advice.

Hello @timpalpant, thanks for the PR! To test this further you can update the SimpleStubs.nuspec and generate a NuGet using NuGetPack.bat. Then you can install the NuGet locally and test it in your IDE to see if it fixes the problem.

Note that NuGets often get cached by the framework when installed so I would recommend changing the version every time you generate a new NuGet. I usually add a letter suffix for testing (e.g. 2.4.8.3-a, 2.4.8.3-b) and then remove it once I have a working version.

I hope that helps.

timpalpant commented 2 years ago

Thanks @nehme-bilal-ah ! I was able to build a prerelease package locally, and verified that this fixes issue #63 for me in VS 2019 (16.11).

I've updated the package version here to 2.4.8.3.

nehmebilal commented 2 years ago

@timpalpant the package has been uploaded to nuget.org, it should show up shortly. Thank you for contributing!