Пример #1
0
 internal DNXProjectFile( DNXSolution ctx, string projectFile )
 {
     _ctx = ctx;
     Debug.Assert( projectFile != null && projectFile.EndsWith( "project.json" ) && File.Exists( projectFile ) );
     _projectFile = projectFile;
     _relativeProjectFile = projectFile.Substring( ctx.SolutionDir.Length );
     _projectName = Path.GetFileName( Path.GetDirectoryName( projectFile ) );
     Debug.Assert( "project.json".Length == 12 );
     _projectDir = _projectFile.Substring( 0, _projectFile.Length - 12 );
 }
Пример #2
0
 internal DNXProjectFile(DNXSolution ctx, string projectFile)
 {
     _ctx = ctx;
     Debug.Assert(projectFile != null && projectFile.EndsWith("project.json") && File.Exists(projectFile));
     _projectFile         = projectFile;
     _relativeProjectFile = projectFile.Substring(ctx.SolutionDir.Length);
     _projectName         = Path.GetFileName(Path.GetDirectoryName(projectFile));
     Debug.Assert("project.json".Length == 12);
     _projectDir = _projectFile.Substring(0, _projectFile.Length - 12);
 }