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

Visual Studio 2022 build #157

Open
duncansmart opened this issue Jun 22, 2021 · 19 comments
Open

Visual Studio 2022 build #157

duncansmart opened this issue Jun 22, 2021 · 19 comments

Comments

@duncansmart
Copy link

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
Copy link

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
Copy link

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

@jimnkey
Copy link

jimnkey commented Nov 17, 2021


                                                        ,▄▄,     ,,,,
                                                    ,▄███████Ç,╓██████▄
                                                   ,██▀▀██▌▐███████▄╙███
                                                   ███  ╠██U███` ╙██▌]██▌
                                                  ███   ]██▓██`   ▐██░██▌▄,
                                                 ▓██`   ▐████▌    ▐██▄██████▄
                                                ▄██`    ████▌     ▐██████▄ ███
                                               ▄██`    ▐████      ███  ╙██W]██[
                                              ▄██╜     ████      ▐██`   ███ ██▌
                                             ███`     ▓███      ╓██▌    ▐██ ██▌
                                            ███`     ▐███      ┌██▌     ██▌ ██▌
                                          ╓███      ]███       ███     ]██▌]██M
                      ,▄▄▄▄█████▄,       ╓██▌      ╓██▀       ███      ▓██▄████▄
                     j██▀▀▀████▀███╖    ▄██▀      ╓██▀       ███`     ▐██████▌▀██╕
                      ██▌   `▀██Ç▀██▄  ███╜      á██▀       ███`     ,██▌  ▀██ ▓██
                      ▐██     ▐██C▐██▄███       ▄██▀      ,███       ███   ]██∩▐██
                      ]██U     ███ ▓███▀       ███'      ╓███       ███    ]██`▐██
                      ]██U     ▐██U▐██▀       "▀▀       ╓██▌       ███     ▐██ ██▌
                      ▐██       █████╜                 ▄██▀       ███`    ,██▌]██M
                      ▐██       ▐███`                 ▐██╜      ┌███      ██▌ ██▌
                      ███      ,███                    `       á██▌      ▓██ ▐██
                      ██▌     ,███                            ▄██▀      ▄██ ╓██`
                     ]██▌     ██▌                            ▓██`      ▓██ ┌██▀
                     ▐██     ╙█▀                                      ███ ╓██▀
                     ▐██                                            ╓██▀ ╓██▀
                     ▐██                                           ▄██╜ ╓██╜
                     ▓██                                          ███  ▐██'
                     ▐██                                        ╓██▀  ▄██`
                     ▐██C                                      ▄██╜  ▓██
                      ███                                     ▄██   ▓██
                      "███                                  ,██▌   ███
                        ███╖                               ╓██▀   ███
                     ,▄██▀██                              ▄██▀  ╓██▀
                   ╓███▀                                ╓██▀   ▄██▀
                 ▄███`                                ╓███╜  ╓███
              ╓▄██▀                                 ▄███▀  ╓███▀
            ▄███▀                                ╓▄██▀`  ╓███▀
         ╓███▀`                               ╓▄███▀  ,▄███▀
      ,▄███▀                               ▄████▀▄▄█████▀`
     ███▀`                               ▄██▀╙   ▐███▀"
                                       ▄██▀     ▄██▀
                                     ▄██▀     ,███
                                   ▄██▀      ╓██▀
                                ,▄██▀       ▄██▀
                              ,▄██▀        ███'
                             ▄██▀        ╓███
                          ,▄██▀         g██▀
                        ╓███▀          ▄██╜
                      ╓███▀          ╓███
                       ▀"           ▐██▀
                                     ▀
    
---
^[ [^ascii ^art ^generator](http://asciiart.club) ^] 

:)

@blopez
Copy link

blopez commented Jan 26, 2022

Hi, any news on this for VS2022?

@danhol86
Copy link

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
Copy link

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
Copy link

chucker commented Feb 28, 2022

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
Copy link

mxmissile commented Feb 28, 2022

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

@danhol86
Copy link

danhol86 commented Mar 2, 2022

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

@mxmissile
Copy link

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

image

If you need anything from me, happy to help!

@danhol86
Copy link

danhol86 commented Mar 2, 2022

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

@BowserKingKoopa
Copy link

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

@danhol86
Copy link

danhol86 commented Mar 3, 2022

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

@BowserKingKoopa
Copy link

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
Copy link

danhol86 commented Mar 4, 2022

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
Copy link

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
Copy link

@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
Copy link

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

@danhol86
Copy link

@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

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

No branches or pull requests

8 participants