public TemporaryCSharpProject WithCSharpProject(string name, string sdk = "Microsoft.NET.Sdk")
        {
            var project = new TemporaryCSharpProject(name, this, sdk);

            _projects.Add(project);
            return(project);
        }
Exemple #2
0
        public TemporaryCSharpProject WithProjectReference(TemporaryCSharpProject reference, bool watch = true)
        {
            if (ReferenceEquals(this, reference))
            {
                throw new InvalidOperationException("Can add project reference to self");
            }

            return(WithItem(new ItemSpec {
                Name = "ProjectReference", Include = reference.Path, Watch = watch
            }));
        }
 public TemporaryCSharpProject WithCSharpProject(string name, out TemporaryCSharpProject project, string sdk = "Microsoft.NET.Sdk")
 {
     project = WithCSharpProject(name, sdk);
     return(project);
 }