File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/Moryx.Cli.Commands/Components Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- using Castle . MicroKernel . Registration ;
2- using Microsoft . AspNetCore . Routing . Constraints ;
3- using Moryx . Container ;
4- using System . Xml ;
1+ using System . Xml ;
52using System . Xml . Linq ;
63
74namespace Moryx . Cli . Commands . Components
@@ -14,7 +11,8 @@ internal class ProjectFileManipulation
1411 public static void AddProjectReference ( string targetProjectFileName , string referenceProjectFileName )
1512 {
1613
17- var referencePath = Path . GetRelativePath ( targetProjectFileName , referenceProjectFileName ) ;
14+ var referencePath = Path . GetRelativePath ( Path . GetDirectoryName ( targetProjectFileName ) , Path . GetDirectoryName ( referenceProjectFileName ) ) ;
15+ referencePath = Path . Combine ( referencePath , Path . GetFileName ( referenceProjectFileName ) ) ;
1816
1917 var projectFile = LoadXml ( targetProjectFileName ) ;
2018
You can’t perform that action at this time.
0 commit comments