Git Product home page Git Product logo

Comments (43)

hagronnestad avatar hagronnestad commented on July 27, 2024 4

I have modified the extension to work in Visual Studio 2017. It works for me at least, give it a try and let me know. My only focus was getting the extension to work in VS2017, so it probably won't work in earlier versions.

A VSIX can be downloaded and installed from here:
https://github.com/hagronnestad/T4Toolbox/releases/tag/vs2017-b1

My fork:
https://github.com/hagronnestad/T4Toolbox

from t4toolbox.

subgurim avatar subgurim commented on July 27, 2024 2

Hi @hagronnestad,

I'm working with your build for these last two weeks too, and it's working perfectly.

Thanks!!

from t4toolbox.

olegsych avatar olegsych commented on July 27, 2024 2

Thanks @floradu88, @thomasonb. For compatibility with older versions of Windows, I think it'll be best to revert T4Toolbox back to .NET 4.5.2.

from t4toolbox.

hagronnestad avatar hagronnestad commented on July 27, 2024 1

@nsgaga I had the same problem, I should have mentioned it. I had to activate "Lightweight solution load for all solutions" to get it to load. I did turn it off afterwards though and it continues to load for me now.

image

from t4toolbox.

zamap avatar zamap commented on July 27, 2024 1

+1

from t4toolbox.

sclarke81 avatar sclarke81 commented on July 27, 2024 1

@hagronnestad Have you thought about raising a pull request with your changes?

from t4toolbox.

olegsych avatar olegsych commented on July 27, 2024 1

I started a PR #47, incorporating changes from the @hagronnestad's fork. Unfortunately I can't get the T4Toolbox.VisualStudio.IntegrationTests to run. Can someone try installing the vsix from the latest ci build?

from t4toolbox.

olegsych avatar olegsych commented on July 27, 2024 1

Thanks @floradu88. I figured out what was wrong with the integration tests and published a new version to the Visual Studio gallery. Can you try installing it from the Visual Studio Extensions and Updates dialog?

from t4toolbox.

olegsych avatar olegsych commented on July 27, 2024 1

I ended up downgrading .NET to v4.6 instead of v4.5.2 because that's what Visual Studio 2017 itself appears to require. Specifically, Microsoft.VisualStudio.Shell.15.0 has a dependency on an assembly built with .NET 4.6 and I couldn't build T4Toolbox with v4.5.2.

Version 15.0.0.2 was published a few minutes ago. Can someone running VS 2017 on Windows 7 without .NET 4.7 help verify it?

from t4toolbox.

ybadragon avatar ybadragon commented on July 27, 2024

This actually would be really useful. The only reason we haven't completely switched to VS 2017 yet is because we generate all of our services using the T4 toolbox and couldn't get it to work in 2017. Same issues you are having.

from t4toolbox.

amariniello avatar amariniello commented on July 27, 2024

Same pain here.. +1

from t4toolbox.

bortolin avatar bortolin commented on July 27, 2024

thomasonb I am in your same situation !

from t4toolbox.

Slokken avatar Slokken commented on July 27, 2024

+1

from t4toolbox.

zeOxx avatar zeOxx commented on July 27, 2024

+1 here as well

from t4toolbox.

odelljl avatar odelljl commented on July 27, 2024

from t4toolbox.

TobiVanHelsinki avatar TobiVanHelsinki commented on July 27, 2024

same problem here

from t4toolbox.

subgurim avatar subgurim commented on July 27, 2024

Exactly same problem here!!

from t4toolbox.

RobBlackmore avatar RobBlackmore commented on July 27, 2024

+1

from t4toolbox.

jgveire avatar jgveire commented on July 27, 2024

+1

from t4toolbox.

RobinHerbots avatar RobinHerbots commented on July 27, 2024

+1

from t4toolbox.

Intelli-Soft avatar Intelli-Soft commented on July 27, 2024

+1

from t4toolbox.

Intelli-Soft avatar Intelli-Soft commented on July 27, 2024

Looks, that it works almost perfect! - THX a lot!

from t4toolbox.

nsgaga avatar nsgaga commented on July 27, 2024

@hagronnestad thanks !
And I've had some issues building the code with 2017 (either original or the fork), opening the .sln just stalls the VS (Community edition + VS SDK checked on, if relevant).

  1. I had to start the devenv /safemode - and then it opens ok,
  2. and then you need to force NuGet (rebuild doesn't help, go to Manage NuGet for solution - and click 'Restore')
    ...then just set "Release' and rebuild all. Some tests still fail but it generates the right .vsix file (\src\T4Toolbox.vsix\bin\Release) and that's all you need.

from t4toolbox.

ooswald avatar ooswald commented on July 27, 2024

+1

from t4toolbox.

hagronnestad avatar hagronnestad commented on July 27, 2024

@zamap and @ooswald, did you try my build? I've been using it for a couple of weeks, seems to work fine. If anyone have time to create a pull request to merge it into the original project please do.
https://github.com/hagronnestad/T4Toolbox/releases/tag/vs2017-b1

from t4toolbox.

zamap avatar zamap commented on July 27, 2024

@hagronnestad, tried to add custom command in context menu for project -> always run for all projects in solution

from t4toolbox.

jordanrobinson avatar jordanrobinson commented on July 27, 2024

@hagronnestad Your extension works great! Only thing I thought I'd mention is that after the last VS update I had to uninstall and reinstall it to get it working again, but now it's working perfectly again.

from t4toolbox.

floradu88 avatar floradu88 commented on July 27, 2024

@olegsych Can you please merge the work from @hagronnestad for vs2017?

from t4toolbox.

hagronnestad avatar hagronnestad commented on July 27, 2024

@sclarke81 Yes, I should probably do a pull request, I just wasn't sure if the changes I did would introduce any incompatibility issues or similar with older versions. Feel free to review my changes or fork my fork and make a PR.

from t4toolbox.

floradu88 avatar floradu88 commented on July 27, 2024

@hagronnestad the version I have installed from your repo LGTM.

from t4toolbox.

jwittner avatar jwittner commented on July 27, 2024

Must have! πŸ‘

from t4toolbox.

aredfox avatar aredfox commented on July 27, 2024

+1 - please do a pull request
just installed & tested with new 15.2 as well @hagronnestad!

from t4toolbox.

cesarsouza avatar cesarsouza commented on July 27, 2024

Also tested with 15.3 Preview 1 and Preview 2 and working fine!

from t4toolbox.

sag3ll0 avatar sag3ll0 commented on July 27, 2024

+1

from t4toolbox.

floradu88 avatar floradu88 commented on July 27, 2024

I got this error when I tried installing it:

08/08/2017 08:18:51 - Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: Element 'Identity' has invalid value for attribute 'Version' ---> System.FormatException: Input string was not in a correct format.
at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
at System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
at System.Version.TryParseVersion(String version, VersionResult& result)
at System.Version.Parse(String input)
at System.Version..ctor(String version)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.b__64_1(String s)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue) --- End of inner exception stack trace --- at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream, String localeRelativeRoot, Boolean localize)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath)
at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable1& skuData) at VSIXInstaller.App.Initialize(Boolean isRepairSupported) at VSIXInstaller.App.Initialize() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

from t4toolbox.

oguiulfo avatar oguiulfo commented on July 27, 2024

Getting this error (I have the VS 2015 version installed in VS2015 as well and it didn't require me to install another version of the .NET framework), what do you think?

Install Error : Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: The extension 'T4 Toolbox for Visual Studio 2017' requires a version of the .NET Framework that is not installed.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CheckForValidDotNetFramework(IExtension extension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.ExtensionRequiresAdditionalOperationForInstall(InstallableExtensionImpl extension, IInstalledExtensionList modifiedInstalledExtensionsList, Boolean isNestedExtension, InstallFlags flags, Boolean& performExtensionUpdate)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary2 extensionsInstalledSoFar, List1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)

from t4toolbox.

ybadragon avatar ybadragon commented on July 27, 2024

The error @oguiulfo is talking about is because the .net framework that is required is 4.7. We literally just fixed this at work today. It was found by extracting the vsix file and opening the extensions.manifest. We simply installed .Net Framework 4.7 and that error went away and it installed successfully.

from t4toolbox.

oguiulfo avatar oguiulfo commented on July 27, 2024

Ahh that explains it. I've been in crunch mode so long I didn't even notice 4.7 had come out. It says that 4.7 came default with Windows 10 Creator's update which explains why I don't have it - my dev machine is still on Windows 7!

from t4toolbox.

ybadragon avatar ybadragon commented on July 27, 2024

We are also on Windows 7. Unfortunately when my co-worker was looking for this fix, he uninstalled a .Net Framework and basically corrupted his entire dev system. He was able to get it working again after about 6 hours of troubleshooting.

from t4toolbox.

olegsych avatar olegsych commented on July 27, 2024

Shoot. I thought that Visual Studio 2017 installed .NET 4.7. @thomasonb Which version of .NET do you have installed with VS 2017 on your Windows 7?

from t4toolbox.

floradu88 avatar floradu88 commented on July 27, 2024

@olegsych The new version from here https://marketplace.visualstudio.com/items?itemName=OlegVSych.T4ToolboxforVisualStudio2017 was successfully installed and works on my vs2017 pro on windows 10

from t4toolbox.

ybadragon avatar ybadragon commented on July 27, 2024

@olegsych Sorry it took a while for me to see this, I had just left work. On Windows 10 Creators update I believe comes with .Net 4.7. On Windows 7, I believe it is 4.5.2. That is the latest version I had on my system prior to installing 4.7

from t4toolbox.

ybadragon avatar ybadragon commented on July 27, 2024

On a related note, Visual Studio 15.3 just released, and that might install 4.7 as well.

from t4toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.