Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e932707
Use signed version of webrole.dll
mjbvz Aug 8, 2016
be0b062
Use full path for CopyOutputsToPath
mjbvz Aug 8, 2016
8540ba2
Use WebRoleDllPath based on existance of SignedBinariesPath
mjbvz Aug 8, 2016
284724e
Delete custom target for targets build
mjbvz Aug 8, 2016
775ac55
pull webrole from webrole binaries
mjbvz Aug 8, 2016
83b63be
Revert removal of _CopyWixOutputsToPath
mjbvz Aug 8, 2016
c31841f
Add a few debug messages
mjbvz Aug 9, 2016
e83a1b9
Remove reference to swix from setup files
mjbvz Aug 9, 2016
3dd2ef0
Remove correct line in dirs.proj
mjbvz Aug 9, 2016
d2fbc31
revert dirs.proj changes
mjbvz Aug 9, 2016
5cfb785
Try adding custom MSBuildAllProjects path to trigger rebuild
mjbvz Aug 9, 2016
10e00d5
Clean up change and remove log statements
mjbvz Aug 9, 2016
3115af7
Swtich to force clean build root output
mjbvz Aug 9, 2016
bc68ea3
Fix WebRoleDll paths
mjbvz Aug 9, 2016
b82fc77
Redo dirs.proj change
mjbvz Aug 9, 2016
d5a9d36
Restore workaround to retrigger build and revert dirs.proj change
mjbvz Aug 9, 2016
0875988
Use buildversion variable instead of hardcoded 1.2 version for vsix p…
mjbvz Aug 9, 2016
515a403
Use build.buildnumber instead
mjbvz Aug 9, 2016
50ec657
Merge pull request #1198 from mjbvz/lightweight-version-update
mjbvz Aug 9, 2016
6cfbed1
Use custom defined buildversion
mjbvz Aug 9, 2016
5721b41
Update other swix files
mjbvz Aug 9, 2016
6fdf2a9
Use custom defined buildversion (#1199)
mjbvz Aug 9, 2016
1111e58
Use MsiVersion instead of custom version logic
mjbvz Aug 9, 2016
367d32f
Merge
mjbvz Aug 9, 2016
a0dca0a
REmove custom build logic
mjbvz Aug 9, 2016
930ce34
Merge branch 'master' into lightweight-install
mjbvz Aug 9, 2016
b309296
Merge remote-tracking branch 'Microsoft/master' into lightweight-install
mjbvz Aug 9, 2016
ded9b56
Remove ProjectTemplatesDir from main pkgdef (#1201)
mjbvz Aug 12, 2016
3f0f54c
Lightweight remote debug (#1203)
mjbvz Aug 15, 2016
a61e814
Fix file path for msi builds
mjbvz Aug 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
using Microsoft.VisualStudioTools;
using Microsoft.NodejsTools.Project;
Expand All @@ -25,9 +26,17 @@ namespace Microsoft.NodejsTools.Commands {
internal sealed class OpenRemoteDebugProxyFolderCommand : Command {
private const string remoteDebugJsFileName = "RemoteDebug.js";

private static string RemoteDebugProxyFolder {
get {
return Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"RemoteDebug");
}
}

public override void DoCommand(object sender, EventArgs args) {
// Open explorer to folder
var remoteDebugProxyFolder = NodejsPackage.RemoteDebugProxyFolder;
var remoteDebugProxyFolder = RemoteDebugProxyFolder;
if (string.IsNullOrWhiteSpace(remoteDebugProxyFolder)) {
MessageBox.Show(SR.GetString(SR.RemoteDebugProxyFolderDoesNotExist), SR.ProductName);
return;
Expand Down
219 changes: 0 additions & 219 deletions Nodejs/Product/Nodejs/Debugger/NodeConnection.cs

This file was deleted.

24 changes: 9 additions & 15 deletions Nodejs/Product/Nodejs/Nodejs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@
</VSTemplate>
</ItemDefinitionGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.ImageCatalog, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="Microsoft.VisualStudio.Imaging, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="Microsoft.VisualStudio.ImageCatalog, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="Microsoft.VisualStudio.Imaging, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<!--
Temporarily freeze versions of some interop assemblies
TODO: https://github.com/Microsoft/nodejstools/issues/759
-->
<Reference Include="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Microsoft.VisualStudio.Shell.Immutable.$(VSTarget), Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="Microsoft.VisualStudio.Utilities, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
Expand Down Expand Up @@ -902,7 +902,10 @@
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Debugger\RemoteDebug\RemoteDebug.js">
<Link>RemoteDebug\RemoteDebug.js</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
<VSIXSubPath>RemoteDebug</VSIXSubPath>
</Content>
<Content Include="Snippets\1033\SnippetsIndex.xml">
<SubType>Designer</SubType>
Expand Down Expand Up @@ -1279,7 +1282,7 @@
<ZipItem Include="Templates\Files\DockerfileTemplate\Dockerfile" />
<ZipItem Include="Templates\Files\DockerfileTemplate\Dockerfile.vstemplate">
<SubType>Designer</SubType>
</ZipItem>
</ZipItem>
<None Include="Theme\Microsoft.NodejsTools.theme.v14.0.pkgdef" />
<None Include="Theme\Microsoft.NodejsTools.theme.v15.0.pkgdef" />
<Content Include="TestFrameworks\Tape\tape.js">
Expand Down Expand Up @@ -1684,27 +1687,18 @@
</Target>
<PropertyGroup>
<PostBuildEvent>
copy /y $(OutDir)..\WebRole\Microsoft.NodejsTools.WebRole.dll $(OutDir)Debugger\RemoteDebug\
copy /y $(OutDir)..\WebRole\Microsoft.NodejsTools.WebRole.dll $(OutDir)RemoteDebug\
</PostBuildEvent>
</PropertyGroup>

<!-- We build these assemblies into separate folders to avoid incremental cleaning issues,
but then CreatePkgDef can't find them for the ProvideCodeBase attributes. So we copy
into the NodejsTools output folder temporarily to generate the pkgdef file. -->

<Target Name="_CopyForCreatePkgDef" BeforeTargets="GeneratePkgDef">

<Copy SourceFiles="$(OutputPath)..\Analysis\Microsoft.NodejsTools.Analysis.dll;$(OutputPath)..\ProjectWizard\Microsoft.NodejsTools.ProjectWizard.dll;$(OutputPath)..\Npm\Microsoft.NodejsTools.Npm.dll;$(OutputPath)..\PressAnyKey\Microsoft.NodejsTools.PressAnyKey.exe;$(OutputPath)..\TestAdapter\Microsoft.NodejsTools.TestAdapter.dll;" DestinationFolder="$(OutputPath)">

<Output TaskParameter="CopiedFiles" ItemName="_CopiedForCreatePkgdef" />

</Copy>

</Target>

<Target Name="_DeleteAfterCreatePkgDef" AfterTargets="GeneratePkgDef">

<Delete Files="@(_CopiedForCreatePkgdef)" />

</Target>
</Project>
36 changes: 0 additions & 36 deletions Nodejs/Product/Nodejs/NodejsPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,42 +381,6 @@ internal LanguagePreferences LangPrefs {
}
}

private static Lazy<string> remoteDebugProxyFolder = new Lazy<string>(() => {
const string ROOT_KEY = "Software\\Microsoft\\NodeJSTools\\" + AssemblyVersionInfo.VSVersion;

// Try HKCU
try {
using (RegistryKey node = Registry.CurrentUser.OpenSubKey(ROOT_KEY)) {
if (node != null) {
var value = (string)node.GetValue("RemoteDebugProxyFolder");
if (value != null)
return value;
}
}
} catch (Exception) {
}

// Try HKLM
try {
using (RegistryKey node = Registry.LocalMachine.OpenSubKey(ROOT_KEY)) {
if (node != null) {
var value = (string)node.GetValue("RemoteDebugProxyFolder");
if (value != null)
return value;
}
}
} catch (Exception) {
}

return null;
});

public static string RemoteDebugProxyFolder {
get {
return remoteDebugProxyFolder.Value;
}
}

private IContentType ReplContentType {
get {
if (_contentType == null) {
Expand Down
2 changes: 1 addition & 1 deletion Nodejs/Product/Nodejs/Project/NodejsProjectPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Microsoft.NodejsTools.Project {
[Guid("2C52FA27-791E-4D04-9F82-234BBB58DE78")]
[DeveloperActivity(NodejsConstants.JavaScript, typeof(NodejsProjectPackage))]
[ProvideObject(typeof(NodejsGeneralPropertyPage))]
[ProvideProjectFactory(typeof(BaseNodeProjectFactory), NodejsConstants.JavaScript, NodeFileFilter, "njsproj", "njsproj", "ProjectTemplates", LanguageVsTemplate = NodejsConstants.Nodejs, SortPriority = 0x17)]
[ProvideProjectFactory(typeof(BaseNodeProjectFactory), NodejsConstants.JavaScript, NodeFileFilter, "njsproj", "njsproj", ".\\NullPath", LanguageVsTemplate = NodejsConstants.Nodejs, SortPriority = 0x17)]
public class NodejsProjectPackage : CommonProjectPackage {
internal const string NodeFileFilter = "Node.js Project Files (*.njsproj);*.njsproj";

Expand Down
2 changes: 1 addition & 1 deletion Nodejs/Product/Nodejs/VSTemplateStore.pkgdef
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[$RootKey$\VSTemplate\{AD294C77-3CF5-4B22-8595-E09926A015A3}]
"ProjectTemplatesDir"="$AppDataLocalFolder$"
"ProjectTemplatesDir"="$AppDataLocalFolder$\\ProjectTemplates"
"ItemTemplatesDir"="$AppDataLocalFolder$"
7 changes: 1 addition & 6 deletions Nodejs/Setup/NodejsTools/NodejsTools.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@

<DirectoryRef Id="TARGETDIR">
<Directory Id="Dir_StartMenu" />
</DirectoryRef>

<Component Id="Comp_RemoteDebug" Directory="Dir_VSInstallLocation" Guid="*">
<RegistryValue Root='HKMU' Key='SOFTWARE\Microsoft\NodejsTools\$(var.VSTargetVersion)' Type='string' Value='Readme' KeyPath='yes' />
<RegistryValue Root='HKMU' Key='SOFTWARE\Microsoft\NodejsTools\$(var.VSTargetVersion)' Type='string' Name='RemoteDebugProxyFolder' Value='[Dir_VSRemoteDebug]' />
</Component>
</DirectoryRef>

<!-- Per user components -->
<Component Id="PerUserInstallRegistry" Directory="Dir_VSInstallLocation" Guid="*">
Expand Down
Loading