logic: fix more Visual Studio plugin issues
* using .Net framework version 4.6.1 in all projects * implemented exception handling in VCFileWrapperFactory * moved logging in separate assembly * enabled logging in wrapper code
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.VCProjectEngine;
|
||||
using CoatiSoftware.SourcetrailPlugin.Logging;
|
||||
using Microsoft.VisualStudio.VCProjectEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
@@ -74,7 +75,7 @@ namespace VCProjectEngineWrapper
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Logging.Logging.LogError("Failed to retreive compiler tool: " + e.Message);
|
||||
Logging.LogError("Failed to retreive compiler tool: " + e.Message);
|
||||
}
|
||||
return new
|
||||
#if (VS2012)
|
||||
|
||||
+6
-1
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VCProjectEngineWrapper</RootNamespace>
|
||||
<AssemblyName>VCProjectEngineWrapperVs2012</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -62,6 +63,10 @@
|
||||
<Compile Include="VCProjectWrapper.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SourcetrailPluginUtility\SourcetrailPluginUtility.csproj">
|
||||
<Project>{604b5751-af34-4ff9-92c3-c85a6bcdf98e}</Project>
|
||||
<Name>SourcetrailPluginUtility</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\VCProjectEngineWrapperInterfaces\VCProjectEngineWrapperInterfaces.csproj">
|
||||
<Project>{F592DB46-0C77-470B-AAF8-80C51F44380E}</Project>
|
||||
<Name>VCProjectEngineWrapperInterfaces</Name>
|
||||
|
||||
+6
-1
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VCProjectEngineWrapper</RootNamespace>
|
||||
<AssemblyName>VCProjectEngineWrapperVs2013</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -65,6 +66,10 @@
|
||||
<None Include="KeyVs2013.snk" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SourcetrailPluginUtility\SourcetrailPluginUtility.csproj">
|
||||
<Project>{604b5751-af34-4ff9-92c3-c85a6bcdf98e}</Project>
|
||||
<Name>SourcetrailPluginUtility</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\VCProjectEngineWrapperInterfaces\VCProjectEngineWrapperInterfaces.csproj">
|
||||
<Project>{F592DB46-0C77-470B-AAF8-80C51F44380E}</Project>
|
||||
<Name>VCProjectEngineWrapperInterfaces</Name>
|
||||
|
||||
+6
-1
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VCProjectEngineWrapper</RootNamespace>
|
||||
<AssemblyName>VCProjectEngineWrapperVs2015</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -65,6 +66,10 @@
|
||||
<None Include="KeyVs2015.snk" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SourcetrailPluginUtility\SourcetrailPluginUtility.csproj">
|
||||
<Project>{604b5751-af34-4ff9-92c3-c85a6bcdf98e}</Project>
|
||||
<Name>SourcetrailPluginUtility</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\VCProjectEngineWrapperInterfaces\VCProjectEngineWrapperInterfaces.csproj">
|
||||
<Project>{F592DB46-0C77-470B-AAF8-80C51F44380E}</Project>
|
||||
<Name>VCProjectEngineWrapperInterfaces</Name>
|
||||
|
||||
+6
-1
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>VCProjectEngineWrapper</RootNamespace>
|
||||
<AssemblyName>VCProjectEngineWrapperVs2017</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -65,6 +66,10 @@
|
||||
<None Include="KeyVs2017.snk" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SourcetrailPluginUtility\SourcetrailPluginUtility.csproj">
|
||||
<Project>{604b5751-af34-4ff9-92c3-c85a6bcdf98e}</Project>
|
||||
<Name>SourcetrailPluginUtility</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\VCProjectEngineWrapperInterfaces\VCProjectEngineWrapperInterfaces.csproj">
|
||||
<Project>{f592db46-0c77-470b-aaf8-80c51f44380e}</Project>
|
||||
<Name>VCProjectEngineWrapperInterfaces</Name>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.VCProjectEngine;
|
||||
using CoatiSoftware.SourcetrailPlugin.Logging;
|
||||
using Microsoft.VisualStudio.VCProjectEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
@@ -72,9 +73,9 @@ namespace VCProjectEngineWrapper
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Logging.Logging.LogError("Failed to retreive project configuration: " + e.Message);
|
||||
Logging.LogError("Failed to retreive project configuration: " + e.Message);
|
||||
}
|
||||
// Logging.Logging.LogError("Failed to find project config matching with \"" + configurationName + "\"");
|
||||
Logging.LogError("Failed to find project config matching with \"" + configurationName + "\"");
|
||||
|
||||
return new
|
||||
#if (VS2012)
|
||||
|
||||
Reference in New Issue
Block a user