logic: Visual Studio plugin improvements
* changed dll version handling to be automated * added some additional logging * improved VCProjectWrapperFactory
This commit is contained in:
+2
-2
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("0.9.*")]
|
||||
//[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
+43
-8
@@ -1,4 +1,6 @@
|
||||
namespace VCProjectEngineWrapper
|
||||
using System;
|
||||
|
||||
namespace VCProjectEngineWrapper
|
||||
{
|
||||
public static class VCProjectWrapperFactory
|
||||
{
|
||||
@@ -6,19 +8,52 @@
|
||||
{
|
||||
IVCProjectWrapper wrapper = null;
|
||||
|
||||
wrapper = new VCProjectWrapperVs2017(wrapped);
|
||||
try
|
||||
{
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2017(wrapped);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
wrapper = null;
|
||||
}
|
||||
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
try
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2015(wrapped);
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2015(wrapped);
|
||||
}
|
||||
}
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
catch (Exception e)
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2013(wrapped);
|
||||
wrapper = null;
|
||||
}
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
|
||||
try
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2012(wrapped);
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2013(wrapped);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
wrapper = null;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (wrapper == null || !wrapper.isValid())
|
||||
{
|
||||
wrapper = new VCProjectWrapperVs2012(wrapped);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
wrapper = null;
|
||||
}
|
||||
|
||||
return wrapper;
|
||||
|
||||
Reference in New Issue
Block a user