jcansdale / TestDriven.Net-Issues

Issue tracking for TestDriven.Net
https://github.com/jcansdale/TestDriven.Net-Issues/issues
24 stars 2 forks source link

Visual Studio 2022 build #157

Open duncansmart opened 3 years ago

duncansmart commented 3 years ago

As Visual Studio 2022's release is approaching, can we get a build for it? I've tried hacking the VSIX's extension.vsixmanifest file by adding an InstallationTarget like so:

<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
  <ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>

Which gets it to install, but then when I try the ad-hoc test runner I get the following in ActivityLog.xml:

CreateInstance failed for package [TestDrivenPackage]Source: 'mscorlib' Description: Could not load file or assembly 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
Mike-E-angelo commented 3 years ago

Any luck with this issue, by chance? R# 2021.2 just released 2022 support today so I am trying to hack all my 2019 extensions over and am running into the same error. 😭

BowserKingKoopa commented 2 years ago

I need this as well. I can't live without my TestDriven.net

jimnkey commented 2 years ago

                                                        ,β–„β–„,     ,,,,
                                                    ,β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆΓ‡,β•“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„
                                                   ,β–ˆβ–ˆβ–€β–€β–ˆβ–ˆβ–Œβ–β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β•™β–ˆβ–ˆβ–ˆ
                                                   β–ˆβ–ˆβ–ˆ  β• β–ˆβ–ˆUβ–ˆβ–ˆβ–ˆ` β•™β–ˆβ–ˆβ–Œ]β–ˆβ–ˆβ–Œ
                                                  β–ˆβ–ˆβ–ˆ   ]β–ˆβ–ˆβ–“β–ˆβ–ˆ`   β–β–ˆβ–ˆβ–‘β–ˆβ–ˆβ–Œβ–„,
                                                 β–“β–ˆβ–ˆ`   β–β–ˆβ–ˆβ–ˆβ–ˆβ–Œ    β–β–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„
                                                β–„β–ˆβ–ˆ`    β–ˆβ–ˆβ–ˆβ–ˆβ–Œ     β–β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„ β–ˆβ–ˆβ–ˆ
                                               β–„β–ˆβ–ˆ`    β–β–ˆβ–ˆβ–ˆβ–ˆ      β–ˆβ–ˆβ–ˆ  β•™β–ˆβ–ˆW]β–ˆβ–ˆ[
                                              β–„β–ˆβ–ˆβ•œ     β–ˆβ–ˆβ–ˆβ–ˆ      β–β–ˆβ–ˆ`   β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–Œ
                                             β–ˆβ–ˆβ–ˆ`     β–“β–ˆβ–ˆβ–ˆ      β•“β–ˆβ–ˆβ–Œ    β–β–ˆβ–ˆ β–ˆβ–ˆβ–Œ
                                            β–ˆβ–ˆβ–ˆ`     β–β–ˆβ–ˆβ–ˆ      β”Œβ–ˆβ–ˆβ–Œ     β–ˆβ–ˆβ–Œ β–ˆβ–ˆβ–Œ
                                          β•“β–ˆβ–ˆβ–ˆ      ]β–ˆβ–ˆβ–ˆ       β–ˆβ–ˆβ–ˆ     ]β–ˆβ–ˆβ–Œ]β–ˆβ–ˆM
                      ,β–„β–„β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„,       β•“β–ˆβ–ˆβ–Œ      β•“β–ˆβ–ˆβ–€       β–ˆβ–ˆβ–ˆ      β–“β–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–„
                     jβ–ˆβ–ˆβ–€β–€β–€β–ˆβ–ˆβ–ˆβ–ˆβ–€β–ˆβ–ˆβ–ˆβ•–    β–„β–ˆβ–ˆβ–€      β•“β–ˆβ–ˆβ–€       β–ˆβ–ˆβ–ˆ`     β–β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–€β–ˆβ–ˆβ••
                      β–ˆβ–ˆβ–Œ   `β–€β–ˆβ–ˆΓ‡β–€β–ˆβ–ˆβ–„  β–ˆβ–ˆβ–ˆβ•œ      Γ‘β–ˆβ–ˆβ–€       β–ˆβ–ˆβ–ˆ`     ,β–ˆβ–ˆβ–Œ  β–€β–ˆβ–ˆ β–“β–ˆβ–ˆ
                      β–β–ˆβ–ˆ     β–β–ˆβ–ˆCβ–β–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆ       β–„β–ˆβ–ˆβ–€      ,β–ˆβ–ˆβ–ˆ       β–ˆβ–ˆβ–ˆ   ]β–ˆβ–ˆβˆ©β–β–ˆβ–ˆ
                      ]β–ˆβ–ˆU     β–ˆβ–ˆβ–ˆ β–“β–ˆβ–ˆβ–ˆβ–€       β–ˆβ–ˆβ–ˆ'      β•“β–ˆβ–ˆβ–ˆ       β–ˆβ–ˆβ–ˆ    ]β–ˆβ–ˆ`β–β–ˆβ–ˆ
                      ]β–ˆβ–ˆU     β–β–ˆβ–ˆUβ–β–ˆβ–ˆβ–€       "β–€β–€       β•“β–ˆβ–ˆβ–Œ       β–ˆβ–ˆβ–ˆ     β–β–ˆβ–ˆ β–ˆβ–ˆβ–Œ
                      β–β–ˆβ–ˆ       β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•œ                 β–„β–ˆβ–ˆβ–€       β–ˆβ–ˆβ–ˆ`    ,β–ˆβ–ˆβ–Œ]β–ˆβ–ˆM
                      β–β–ˆβ–ˆ       β–β–ˆβ–ˆβ–ˆ`                 β–β–ˆβ–ˆβ•œ      β”Œβ–ˆβ–ˆβ–ˆ      β–ˆβ–ˆβ–Œ β–ˆβ–ˆβ–Œ
                      β–ˆβ–ˆβ–ˆ      ,β–ˆβ–ˆβ–ˆ                    `       Γ‘β–ˆβ–ˆβ–Œ      β–“β–ˆβ–ˆ β–β–ˆβ–ˆ
                      β–ˆβ–ˆβ–Œ     ,β–ˆβ–ˆβ–ˆ                            β–„β–ˆβ–ˆβ–€      β–„β–ˆβ–ˆ β•“β–ˆβ–ˆ`
                     ]β–ˆβ–ˆβ–Œ     β–ˆβ–ˆβ–Œ                            β–“β–ˆβ–ˆ`      β–“β–ˆβ–ˆ β”Œβ–ˆβ–ˆβ–€
                     β–β–ˆβ–ˆ     β•™β–ˆβ–€                                      β–ˆβ–ˆβ–ˆ β•“β–ˆβ–ˆβ–€
                     β–β–ˆβ–ˆ                                            β•“β–ˆβ–ˆβ–€ β•“β–ˆβ–ˆβ–€
                     β–β–ˆβ–ˆ                                           β–„β–ˆβ–ˆβ•œ β•“β–ˆβ–ˆβ•œ
                     β–“β–ˆβ–ˆ                                          β–ˆβ–ˆβ–ˆ  β–β–ˆβ–ˆ'
                     β–β–ˆβ–ˆ                                        β•“β–ˆβ–ˆβ–€  β–„β–ˆβ–ˆ`
                     β–β–ˆβ–ˆC                                      β–„β–ˆβ–ˆβ•œ  β–“β–ˆβ–ˆ
                      β–ˆβ–ˆβ–ˆ                                     β–„β–ˆβ–ˆ   β–“β–ˆβ–ˆ
                      "β–ˆβ–ˆβ–ˆ                                  ,β–ˆβ–ˆβ–Œ   β–ˆβ–ˆβ–ˆ
                        β–ˆβ–ˆβ–ˆβ•–                               β•“β–ˆβ–ˆβ–€   β–ˆβ–ˆβ–ˆ
                     ,β–„β–ˆβ–ˆβ–€β–ˆβ–ˆ                              β–„β–ˆβ–ˆβ–€  β•“β–ˆβ–ˆβ–€
                   β•“β–ˆβ–ˆβ–ˆβ–€                                β•“β–ˆβ–ˆβ–€   β–„β–ˆβ–ˆβ–€
                 β–„β–ˆβ–ˆβ–ˆ`                                β•“β–ˆβ–ˆβ–ˆβ•œ  β•“β–ˆβ–ˆβ–ˆ
              β•“β–„β–ˆβ–ˆβ–€                                 β–„β–ˆβ–ˆβ–ˆβ–€  β•“β–ˆβ–ˆβ–ˆβ–€
            β–„β–ˆβ–ˆβ–ˆβ–€                                β•“β–„β–ˆβ–ˆβ–€`  β•“β–ˆβ–ˆβ–ˆβ–€
         β•“β–ˆβ–ˆβ–ˆβ–€`                               β•“β–„β–ˆβ–ˆβ–ˆβ–€  ,β–„β–ˆβ–ˆβ–ˆβ–€
      ,β–„β–ˆβ–ˆβ–ˆβ–€                               β–„β–ˆβ–ˆβ–ˆβ–ˆβ–€β–„β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–€`
     β–ˆβ–ˆβ–ˆβ–€`                               β–„β–ˆβ–ˆβ–€β•™   β–β–ˆβ–ˆβ–ˆβ–€"
                                       β–„β–ˆβ–ˆβ–€     β–„β–ˆβ–ˆβ–€
                                     β–„β–ˆβ–ˆβ–€     ,β–ˆβ–ˆβ–ˆ
                                   β–„β–ˆβ–ˆβ–€      β•“β–ˆβ–ˆβ–€
                                ,β–„β–ˆβ–ˆβ–€       β–„β–ˆβ–ˆβ–€
                              ,β–„β–ˆβ–ˆβ–€        β–ˆβ–ˆβ–ˆ'
                             β–„β–ˆβ–ˆβ–€        β•“β–ˆβ–ˆβ–ˆ
                          ,β–„β–ˆβ–ˆβ–€         gβ–ˆβ–ˆβ–€
                        β•“β–ˆβ–ˆβ–ˆβ–€          β–„β–ˆβ–ˆβ•œ
                      β•“β–ˆβ–ˆβ–ˆβ–€          β•“β–ˆβ–ˆβ–ˆ
                       β–€"           β–β–ˆβ–ˆβ–€
                                     β–€

---
^[ [^ascii ^art ^generator](http://asciiart.club) ^] 

:)

blopez commented 2 years ago

Hi, any news on this for VS2022?

danhol86 commented 2 years ago

I ended up building my own version. I only use it for running the function at my cursor. If only need this then let me know.

BowserKingKoopa commented 2 years ago

I ended up building my own version. I only use it for running the function at my cursor. If only need this then let me know.

Yes I'd like to get a copy of that. I only use it to run the code at my cursor as well.

chucker commented 2 years ago

Same. For regular unit testing, VS is OK. For quickly turning any static method (even when the project is a library) into an entry point, this extension is terrific.

mxmissile commented 2 years ago

@danhole86 will yours run a unit test at the cursor? If so, I'm game for sure!!!

danhol86 commented 2 years ago

Added extension to the marketplace "RunFromCursor". Will be putting code on github shortly. 2 commands currently to bind to. "DebugCodeAtCursor" and "RerunCodeAtCursor"

mxmissile commented 2 years ago

Thanks for this!! However I'm getting this error when running either command:

image

If you need anything from me, happy to help!

danhol86 commented 2 years ago

Maybe worth using below link until I get github up and running. https://marketplace.visualstudio.com/items?itemName=AgileAutomations.runfromcursoraa&ssr=false#qna

BowserKingKoopa commented 2 years ago

I'm getting the same error as mxmissile above on extension version 1.13.

danhol86 commented 2 years ago

Issue solved in 1.15. Please use below link for any issues: https://marketplace.visualstudio.com/items?itemName=AgileAutomations.runfromcursoraa&ssr=false#overview

BowserKingKoopa commented 2 years ago

Upgraded to 1.15. Now the "Debug Code At Cursor" option builds the code but doesn't seem to run the code. And the "ReRun Code at Cursor" Option complains about a missing Microsoft.CodeAnalysis dll. I added that package to my project but it still complains.

danhol86 commented 2 years ago

Upgraded to 1.15. Now the "Debug Code At Cursor" option builds the code but doesn't seem to run the code. And the "ReRun Code at Cursor" Option complains about a missing Microsoft.CodeAnalysis dll. I added that package to my project but it still complains.

Please try v3879. For some reason Microsoft didn't pack all required DLLs into the vsix. You shouldn't need to install anything extra to your proj

BowserKingKoopa commented 2 years ago

Please try v3879. For some reason Microsoft didn't pack all required DLLs into the vsix. You shouldn't need to install anything extra to your proj

Version 1.3879 is working for me. Thank you very much.

mxmissile commented 2 years ago

@danhol86 do you have a repo setup for this? Have an issue I would like to discuss, dont want to muddy up this thread.

BowserKingKoopa commented 2 years ago

@danhol86 This doesn't seem to work with async methods. It doesn't wait for them to finish.

danhol86 commented 2 years ago

@danhol86 do you have a repo setup for this? Have an issue I would like to discuss, dont want to muddy up this thread.

Please message in q&a here for now. Thanks https://marketplace.visualstudio.com/items?itemName=AgileAutomations.runfromcursoraa&ssr=false#qna