Comments (43)
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.
Hi @hagronnestad,
I'm working with your build for these last two weeks too, and it's working perfectly.
Thanks!!
from t4toolbox.
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.
@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.
from t4toolbox.
+1
from t4toolbox.
@hagronnestad Have you thought about raising a pull request with your changes?
from t4toolbox.
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.
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.
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.
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.
Same pain here.. +1
from t4toolbox.
thomasonb I am in your same situation !
from t4toolbox.
+1
from t4toolbox.
+1 here as well
from t4toolbox.
from t4toolbox.
same problem here
from t4toolbox.
Exactly same problem here!!
from t4toolbox.
+1
from t4toolbox.
+1
from t4toolbox.
+1
from t4toolbox.
+1
from t4toolbox.
Looks, that it works almost perfect! - THX a lot!
from t4toolbox.
@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).
- I had to start the devenv /safemode - and then it opens ok,
- 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.
+1
from t4toolbox.
@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.
@hagronnestad, tried to add custom command in context menu for project -> always run for all projects in solution
from t4toolbox.
@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.
@olegsych Can you please merge the work from @hagronnestad for vs2017?
from t4toolbox.
@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.
@hagronnestad the version I have installed from your repo LGTM.
from t4toolbox.
Must have! π
from t4toolbox.
+1 - please do a pull request
just installed & tested with new 15.2 as well @hagronnestad!
from t4toolbox.
Also tested with 15.3 Preview 1 and Preview 2 and working fine!
from t4toolbox.
+1
from t4toolbox.
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, Func
2 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.Task
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
from t4toolbox.
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, List
1 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.
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.
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.
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.
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.
@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.
@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.
On a related note, Visual Studio 15.3 just released, and that might install 4.7 as well.
from t4toolbox.
Related Issues (20)
- Add support for SQL server database projects HOT 1
- Is there a way to transform using PowerShell msbuild -T4Toolbox.TransformationContextProcessor HOT 1
- Using T4Toolbox on .Net Core
- Is it possible to replace TAB by spaces?
- A processor named 'T4Toolbox.Xsd Processor' could not be found for the directive named 'xsd'. The transformation will not be run.
- Support for VS 2017
- Using templates in PCL Project (design time generation) HOT 1
- Add support fo *.ttinclude HOT 3
- Scaffold support
- Create files in multi projects HOT 1
- RemoteException when the generation lasts for more than 5-6 minutes
- T4 Toolbox randomly crashes Visual Studio 2017 HOT 2
- vs2015 can not open the project HOT 1
- T4 gallery
- T4 Toolbox for VS 2019 HOT 2
- SyntaxKind is missing HOT 1
- Support T4 Toolbox for VS 2019οΌοΌ HOT 1
- Update? Fork? Successor? Community? HOT 2
- Need Support for VS 2022 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t4toolbox.