Create VSIX package and move all custom tool code into the VSPackage project

This commit is contained in:
Christian Resma Helle
2013-05-26 00:10:55 +02:00
parent 95e1d1aa39
commit b52fae47fc
46 changed files with 2764 additions and 42 deletions
@@ -1,5 +1,6 @@
using System.IO;
using System.Linq;
using ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool;
using Microsoft.VisualBasic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -9,7 +10,7 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.CustomTool.Tests
[DeploymentItem("Resources/Resources.resw")]
public class VisualBasicCodeGeneratorTests
{
private const string FilePath = "Resources.resw";
private const string FILE_PATH = "Resources.resw";
private string actual;
private string reswFileContents;
private ICodeGenerator target;
@@ -17,9 +18,9 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.CustomTool.Tests
[TestInitialize]
public void Initialize()
{
reswFileContents = File.ReadAllText(FilePath);
reswFileContents = File.ReadAllText(FILE_PATH);
target = new CodeGeneratorFactory().Create(FilePath.Replace(".resw", string.Empty), "TestApp", reswFileContents, new VBCodeProvider());
target = new CodeGeneratorFactory().Create(FILE_PATH.Replace(".resw", string.Empty), "TestApp", reswFileContents, new VBCodeProvider());
actual = target.GenerateCode();
}