Skip to content

Commit

Permalink
Merge pull request #1652 from zooba/json-version
Browse files Browse the repository at this point in the history
Json version
  • Loading branch information
Hugues Valois authored Sep 22, 2016
2 parents beadfa2 + e5d05ae commit 53c6989
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Build/PreBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param ($vstarget, $source, [switch] $clean, [switch] $full)
# This is the list of packages we require to build, and the version to use for each supported $vstarget
$packages = @(
@{ name="Microsoft.VSSDK.BuildTools"; version=@{ "14.0"="14.2.25201"; "15.0"="15.0.25604-Preview4" }; required=$true },
@{ name="Newtonsoft.Json"; version=@{ "14.0"="6.0.8"; "15.0"="6.0.8" }; required=$true },
@{ name="Newtonsoft.Json"; version=@{ "14.0"="6.0.8"; "15.0"="8.0.3" }; required=$true },
@{ name="MicroBuild.Core"; version=@{ "14.0"="0.2.0"; "15.0"="0.2.0" }; required=$false },
@{ name="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime"; version=@{ "14.0"="14.2.25123"; "15.0"="14.2.25123" }; required=$true },
@{ name="Microsoft.VisualStudio.Shell.Interop.12.1.DesignTime"; version=@{ "14.0"="12.1.30328"; "15.0"="12.1.30328" }; required=$true },
Expand Down
2 changes: 1 addition & 1 deletion Python/Product/Analyzer/Analyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<ApplicationIcon>..\Icons\Dev$(VSTarget)\PythonProject.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json">
<HintPath>$(PackagesPath)\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
Expand Down
2 changes: 1 addition & 1 deletion Python/Product/Cookiecutter/Cookiecutter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<Reference Include="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json">
<HintPath>$(PackagesPath)\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
<IncludeInVSIX>True</IncludeInVSIX>
Expand Down
2 changes: 2 additions & 0 deletions Python/Product/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
<None Include="source.extension.vsixmanifest" />
<Content Include="$(PackagesPath)\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll">
<VSIXSubPath>.</VSIXSubPath>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="$(BuildRoot)\Python\References\Dev$(VSTarget)\Microsoft.PythonTools.InteractiveWindow.dll">
<VSIXSubPath>.</VSIXSubPath>
Expand Down
2 changes: 1 addition & 1 deletion Python/Product/Core/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<Asset Type="UnitTestExtension" Path="|Microsoft.PythonTools.TestAdapter.Executor;_GetTargetPath|" />
<Asset Type="DebuggerEngineExtension" Path="DkmDebugger.vsdconfig" />
<Asset Type="NativeVisualizer" Path="PythonDkm.natvis" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="File" Path="Newtonsoft.Json.dll" AssemblyName="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="File" Path="Newtonsoft.Json.dll" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="File" Path="Microsoft.PythonTools.InteractiveWindow.dll" AssemblyName="Microsoft.PythonTools.InteractiveWindow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Asset Type="Microsoft.VisualStudio.Assembly" d:Source="File" Path="Microsoft.PythonTools.VsInteractiveWindow.dll" AssemblyName="Microsoft.PythonTools.VsInteractiveWindow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="Microsoft.PythonTools.VsInteractiveWindow.pkgdef" />
Expand Down
2 changes: 1 addition & 1 deletion Python/Product/Ipc.Json/Ipc.Json.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<RootNamespace>Microsoft.PythonTools.Ipc.Json</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json">
<HintPath>$(PackagesPath)\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
Expand Down
5 changes: 1 addition & 4 deletions Python/Product/PythonTools/PythonTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
<Reference Include="Microsoft.VisualStudio.WizardFramework, Version=$(VSTarget).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>$(DevEnvDir)\Microsoft.VisualStudio.WizardFramework.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Reference Include="Newtonsoft.Json">
<HintPath>$(PackagesPath)\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
<IncludeInVSIX>True</IncludeInVSIX>
Expand Down Expand Up @@ -858,9 +858,6 @@
<ResourceName>1000</ResourceName>
<SubType>Designer</SubType>
</VSCTCompile>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="visualstudio_py_launcher.py">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1214,13 +1214,12 @@ private void AnalysisProcessExited(object sender, AbnormalAnalysisExitEventArgs
msg.AppendFormat("Exit Code: {0}", e.ExitCode);
msg.AppendLine();
msg.AppendLine(" ------ STD ERR ------ ");
msg.AppendLine(e.StdErr);
msg.Append(e.StdErr);
msg.AppendLine(" ------ END STD ERR ------ ");
Site.GetPythonToolsService().Logger.LogEvent(
PythonLogEvent.AnalysisExitedAbnormally,
msg.ToString()
);
EventLog.WriteEntry(Strings.ProductTitle, msg.ToString(), EventLogEntryType.Error, 9998);
}

private void HookErrorsAndWarnings(VsProjectAnalyzer res) {
Expand Down

0 comments on commit 53c6989

Please sign in to comment.