Matt Ward
d7b7ee5247
T4 template can now add partial keyword to class.
...
The EnvDTE.CodeClass2.ClassKind property setter can be used to add a partial keyword to the class definition.
The T4MVC template makes all controller classes partial so it can add extend the original class with an associated partial controller class that it generates.
13 years ago
Matt Ward
12fe1bbc73
Fix T4MVC template not generating method parameters.
...
Now using CodeParameter2 instead of CodeParameter when returning parameters from CodeFunction.Parameters
13 years ago
Matt Ward
debe1eae99
Fix incorrect namespace returned for EnvDTE.CodeType.
...
The last part of the namespace was being returned by CodeNamespace.Name for a CodeType instead of the fully qualified name.
13 years ago
Matt Ward
a2a0f04240
Add new dependent files to project browser.
...
Update the project browser with any dependent files added to the project by the T4MVC template when it is run.
13 years ago
Matt Ward
3b15af69c1
Set DependentUpon for file added to EnvDTE file project item.
...
The T4MVC template uses EnvDTE.ProjectItems.AddFromFile() to add its generated files as dependent files.
If the project items belong to a file then the DependentUpon property is set in the MSBuild project.
13 years ago
Matt Ward
31560dd552
Add dependent files as child EnvDTE.ProjectItems.
...
Fixes the T4MVC template from adding duplicate files to the project since it failed to find the dependent files under T4MVC.tt.
13 years ago
Matt Ward
51f2ab9e20
Fix find in files exception when search matches file without highlighting.
...
When find in files matches text in a .txt file then EditorControlService.Instance.CreateHighlighter() returns null since .txt files have no syntax highlighting.
13 years ago
Matt Ward
7b0d8e92c9
Fix different EnvDTE behaviour between SharpDevelop and Visual Studio.
...
Throw exception when unknown item requested from EnvDTE.ProjectItems.Item() instead of returning null.
The T4MVC template relies on this behaviour when looking for folders that do not exist.
13 years ago
Matt Ward
14d0d235df
Fix cross appdomain serialisation exception for EnvDTE project items.
...
Convert project items generated by yield return to a list before allowing them to be used in a different app domain. The class generated by using the yield keyword is not serialisable.
13 years ago
Matt Ward
d9ed0169a4
Make EnvDTE classes serialisable.
13 years ago
Matt Ward
61cccdf063
Implement EnvDTE.ProjectItem.Open()
...
The T4MVC template opens itself into the IDE if it is not already open.
13 years ago
Matt Ward
69ccf0af45
Implement EnvDTE.Document.Saved
...
When T4MVC is configured to always keep its template unsaved then it uses Document.Saved to false each time it is run.
13 years ago
Matt Ward
d67c82e1f1
Implement EnvDTE.ProjectItem.Document
...
The T4MVC template checks the ProjectItem.Document property to see if it has been opened.
13 years ago
Matt Ward
358fbf071b
Implement EnvDTE.CodeParameter.Attributes
...
The T4MVC template looks for the MVC BindAttribute on method parameters in order to get the prefix.
13 years ago
Matt Ward
b80bfb80b6
Implement EnvDTE.CodeParameter2.ParameterKind
...
The T4MVC template checks whether a parameter is optional so it can determine which controller action methods can be called without any parameters.
13 years ago
Matt Ward
8bab34c5fb
Implemented EnvDTE.CodeFunction2.IsGeneric
...
The T4MVC template ignores controller methods that are generic.
13 years ago
Matt Ward
1e6d363c41
Fix CodeFunction.CanOverride returning false for overridden methods.
13 years ago
Matt Ward
32d5d39e8b
Implement EnvDTE.CodeFunction2.OverrideKind
...
The T4MVC template checks that a method is an overridden method.
13 years ago
Matt Ward
a315a11f4d
Return EnvDTE.CodeFunction2 instances from EnvDTE.CodeClass2.Members.
...
The T4MVC assumes the class methods are instances of the CodeFunction2 type.
13 years ago
Matt Ward
b17aa07a6d
Implement EnvDTE.CodeFunction.Attributes
...
The T4MVC template checks method attributes.
13 years ago
Matt Ward
02bd3e331d
Implement EnvDTE.CodeFunction.CanOverride
13 years ago
Matt Ward
b1e90b14ef
Implement EnvDTE.CodeFunction.MustImplement
...
Returns true if the method is abstract.
13 years ago
Matt Ward
81671a907d
Implement EnvDTE.CodeFunction.IsShared
...
Returns true if the method is static.
13 years ago
Matt Ward
5e0d6c3475
Implement EnvDTE.CodeFunction.FunctionKind
...
CodeFunction.FunctionKind currently only detects if the method is a constructor or a normal method.
13 years ago
Matt Ward
f8a9a0cff6
Implement EnvDTE.CodeType.IsDerivedFrom()
...
The T4MVC template checks that controller action methods return a class derived from System.Web.Mvc.ActionResult.
13 years ago
Matt Ward
085dd5f0f5
Implement EnvDTE.CodeTypeRef.TypeKind.
...
The T4MVC template ignores methods that return something other than a reference type.
13 years ago
Matt Ward
9963d62468
Implement EnvDTE.CodeClass2.IsGeneric
...
The T4MVC template checks for generic controller classes and does not process them.
13 years ago
Matt Ward
8dab965c7d
Refactor EnvDTE.ProjectItems.
...
Remove code duplication in ProjectItems classes.
13 years ago
Matt Ward
b6aa67a6e2
Fix EnvDTE.ProjectItems.Item not returning correct items for child directories.
13 years ago
Matt Ward
3626c4c43e
Update OpenCover to version 4.0.724
13 years ago
Siegfried Pammer
34b40e896a
add missing documentation
13 years ago
Siegfried Pammer
3a1256bb4d
correction of bounding box calculation in IME support
13 years ago
Siegfried Pammer
6b11a082c3
fix background color highlighting bug
13 years ago
Matt Ward
f81c495eac
Add classes to EnvDTE.FileCodeModel2.CodeElements
13 years ago
Matt Ward
24955c6960
Implement EnvDTE.CodeClass2.ClassKind getter.
13 years ago
Matt Ward
102658b33f
Implement EnvDTE.CodeType2.IsAbstract
13 years ago
Matt Ward
239d24cf10
Implement EnvDTE.Projects.Count
13 years ago
Matt Ward
89bce2c9b3
Implement EnvDTE.Projects.Item()
13 years ago
Matt Ward
d5c579c0ba
Implement EnvDTE.Solution.FindProjectItem
13 years ago
Matt Ward
8dd6f39aa4
Return SDTE from text template host GetService.
...
T4MVC template requests the SDTE from the text templating host's IServiceProvider implementation and casts it to a DTE.
13 years ago
Matt Ward
8957e14233
Create stubs for EnvDTE API used by T4MVC.
...
Minor changes to T4MVC.tt:
1) Change imported assemblies and namespaces to refer to SharpDevelop's implementation of EnvDTE.
2) Change use of parameterised properties to method calls so no VB.NET classes are required.
13 years ago
Matt Ward
d888ef5555
Request latest package versions from NuGet feed.
...
Use $filter=IsLatestVersion when requesting packages from the online NuGet feed. Reduces the number of requests sent and the results are displayed quicker.
13 years ago
Matt Ward
5b3abf818e
Cache the current open solution in the EnvDTE.DTE class.
...
Maintains any solution variables added between accesses to the $dte.Solution in the Powershell console.
This allows the Unity NuGet package to install without any errors.
13 years ago
Matt Ward
6fddd96e6c
Allow Powershell to use EnvDTE.Globals properties as methods.
...
Added a VB.NET Globals class which implements multiple parameterised properties which are not supported in C#.
This allows Powershell to use properties on the Globals class as though they were methods:
$dte.Solution.Globals.VariableValue("MyValue") = "value"
Write-Host $dte.Solution.Globals.VariableValue("MyValue")
$dte.Solution.Globals.VariablePersists("MyValue") = $true
Write-Host $dte.Solution.Globals.VariablePersists("MyValue")
13 years ago
Matt Ward
f3e28c206d
Fix solution not being saved when extensibility global changed.
...
Save solution when:
1) EnvDTE.Solution.Globals.VariablePersists is set to true.
2) An existing solution item is changed by EnvDTE.Solution.Globals.VariableValue.
13 years ago
Matt Ward
5e15bbae37
Implement EnvDTE.Solution.Globals.VariablePersists
...
Allows ExtensibilityGlobals solution items to be added or removed from the solution. Used by Unity NuGet package.
13 years ago
Matt Ward
ca45dd501d
Implement EnvDTE.Solution.Globals.VariableValue
...
Allows reading/writing of ExtensibilityGlobals solution items. Used by Unity NuGet package.
13 years ago
Matt Ward
776d5d28b0
Add support for EnvDTE.Solution.Globals.VariableExists
...
Checks the ExtensibilityGlobals section of a solution file for a variable. Used by the Unity NuGet package.
13 years ago
Matt Ward
01ed6f6421
Fix errors when uninstalling jQuery 1.8.0 NuGet package.
...
jQuery NuGet package was using an unimplemented part of the Visual Studio API - EnvDTE.ProjectItems.FileNames(index).
13 years ago
Matt Ward
884951dabc
Update NuGet to version 2.0
13 years ago