summaryrefslogtreecommitdiff
path: root/vsaddin/src/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'vsaddin/src/Util.cs')
-rw-r--r--vsaddin/src/Util.cs18
1 files changed, 15 insertions, 3 deletions
diff --git a/vsaddin/src/Util.cs b/vsaddin/src/Util.cs
index 6f2e8ed157e..274a9bbd8e3 100644
--- a/vsaddin/src/Util.cs
+++ b/vsaddin/src/Util.cs
@@ -2353,8 +2353,19 @@ namespace Ice.VisualStudio
{
string iceHome = getIceHome();
string binDir = getCsBinDir(project);
- ComponentList components = Util.getIceDotNetComponents(project);
- foreach (string component in components)
+ ComponentList components = Util.getIceDotNetComponents(project);
+ String version = Builder.getSliceCompilerVersion(project, Util.slice2cs);
+
+ string[] tokens = version.Split('.');
+ //
+ // Add patch version 0 if there isn't one
+ //
+ if(tokens.Length == 3)
+ {
+ version += ".0";
+ }
+
+ foreach(string component in components)
{
if (String.IsNullOrEmpty(component))
{
@@ -2373,7 +2384,8 @@ namespace Ice.VisualStudio
{
if(r.Name.Equals(component, StringComparison.OrdinalIgnoreCase))
{
- if(!r.Path.Equals(reference))
+ if(!r.Path.Equals(reference) ||
+ !r.Version.Equals(version))
{
bool copyLocal = getCopyLocal(project, component);
Util.removeDotNetReference(project, component);