81 references to CsProjPath
dotnet.Tests (79)
CommandTests\Reference\Add\GivenDotnetAddReference.cs (30)
224var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 242var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 259new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 281new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 287var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 303new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 309var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 325new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 331var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 347new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 371var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 385new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 391var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 436var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 468var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 485var cmd = new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 505var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 526var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 576var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 628var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 629.Execute("-f", FrameworkNet451, net45lib.CsProjPath); 645var cmd = new DotnetCommand(Log, "add", net452netcoreapp10lib.CsProjPath, "reference") 646.Execute(lib.CsProjPath); 667var cmd = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 668.Execute($"-f", framework, net45lib.CsProjPath); 690args.Add(lib.CsProjPath); 693var cmd = new DotnetCommand(Log, "add", net45lib.CsProjPath, "reference") 707var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 723var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference") 739var result = new DotnetCommand(Log, "add", lib.CsProjPath, "reference")
CommandTests\Reference\List\GivenDotnetListReference.cs (12)
156.WithProject(lib.CsProjPath) 159cmd.StdOut.Should().Be(string.Format(CliStrings.NoReferencesFound, CliStrings.P2P, lib.CsProjPath)); 173string ref1 = NewLib(testDirectory, "ref").CsProjPath; 177.WithProject(lib.CsProjPath) 196string ref1 = NewLib(testDir, "ref1").CsProjPath; 197string ref2 = NewLib(testDir, "ref2").CsProjPath; 198string ref3 = NewLib(testDir, "ref3").CsProjPath; 205.WithProject(lib.CsProjPath) 225.WithProject(lib.CsProjPath) 263new DotnetCommand(Log, "add", proj.CsProjPath, "reference") 271csprojXml.Load(proj.CsProjPath); 279csprojXml.Save(proj.CsProjPath);
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (37)
110.WithProject(proj.CsProjPath) 112.Execute(additionalArgs.Concat(new[] { ret.CsProjPath })) 122.WithProject(proj.CsProjPath) 124.Execute(frameworkArgs.Concat(new[] { ret.CsProjPath })) 249.WithProject(lib.CsProjPath) 251.Execute(libref.CsProjPath); 268.WithProject(lib.CsProjPath) 270.Execute(FrameworkNet451Args.Concat(new[] { libref.CsProjPath })); 288.WithProject(lib.CsProjPath) 290.Execute(libref.CsProjPath); 307.WithProject(lib.CsProjPath) 309.Execute(libref.CsProjPath); 311cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceCouldNotBeFound, libref.CsProjPath)); 324.WithProject(lib.CsProjPath) 326.Execute(FrameworkNet451Args.Concat(new[] { libref.CsProjPath })); 328cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceCouldNotBeFound, libref.CsProjPath)); 344.WithProject(lib.CsProjPath) 346.Execute(librefNoCond.CsProjPath); 369.WithProject(lib.CsProjPath) 371.Execute(FrameworkNet451Args.Concat(new[] { librefCond.CsProjPath })); 394.WithProject(lib.CsProjPath) 396.Execute(FrameworkNet451Args.Concat(new[] { librefCondNet451.CsProjPath })); 419.WithProject(proj.CsProjPath) 421.Execute(libref.CsProjPath); 439.WithProject(lib.CsProjPath) 458.WithProject(lib.CsProjPath) 477.WithProject(lib.CsProjPath) 500.WithProject(lib.CsProjPath) 502.Execute(libref.CsProjPath, validref.CsProjPath); 524.WithProject(lib.CsProjPath) 526.Execute(libref.CsProjPath, validref.CsProjPath); 542.WithProject(lib.CsProjPath) 544.Execute(libref.CsProjPath); 559.WithProject(lib.CsProjPath) 576.WithProject(lib.CsProjPath)
Msbuild.Tests.Utilities (2)
ProjDir.cs (2)
24return File.ReadAllText(CsProjPath); 30return ProjectRootElement.Open(CsProjPath, new ProjectCollection());