33 references to SetValue
dotnet.Tests (1)
GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs (1)
91rootNamespaceElement?.SetValue(target);
dotnet-svcutil-lib (3)
Shared\MSBuildProj.cs (3)
614element.SetValue(value); 661targetFrameworkNode.SetValue(targetFramework); 669targetFrameworksNode.SetValue(_targetFrameworks.Aggregate((tfs, tf) => $"{tfs};{tf}"));
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
43existingUserSecretsId.SetValue(newSecretsId);
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
43existingUserSecretsId.SetValue(newSecretsId);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
215versionElement.SetValue(newPackageVersion.ToFullString());
src\ReplacePackageParts.cs (1)
183versionElement.SetValue(packageVersion);
Microsoft.NET.Build.Tests (11)
AppHostTests.cs (1)
359propertyGroup.Element(ns + "TargetFramework").SetValue(targetFramework);
DesignTimeBuildTests.cs (1)
63.SetValue(ToolsetInfo.CurrentTargetFramework);
GivenThatWeWantToBuildADesktopExeWithFSharp.cs (1)
25propertyGroup.Element(ns + "TargetFramework").SetValue(targetFramework);
GivenThatWeWantToBuildALibrary.cs (2)
357targetFrameworkProperty.SetValue(targetFramework); 361targetFrameworkProperties.Single().SetValue(targetFramework);
GivenThatWeWantToBuildALibraryWithFSharp.cs (2)
204targetFrameworkProperty.SetValue(targetFramework); 208targetFrameworkProperties.Single().SetValue(targetFramework);
GivenThatWeWantToBuildALibraryWithVB.cs (2)
222targetFrameworkProperty.SetValue(targetFramework); 226targetFrameworkProperties.Single().SetValue(targetFramework);
GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs (1)
29propertyGroup.Element(ns + "TargetFramework").SetValue(targetFramework);
GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs (1)
29propertyGroup.Element(ns + "TargetFramework").SetValue(targetFramework);
Microsoft.NET.Publish.Tests (5)
GivenThatWeWantToPreserveCompilationContext.cs (1)
178targetFrameworkElement.SetValue(targetFramework);
GivenThatWeWantToPublishAProjectWithAllFeatures.cs (1)
201targetFrameworkElement.SetValue(targetFramework);
GivenThatWeWantToPublishAProjectWithDependencies.cs (2)
116targetFrameworkElement.SetValue(targetFramework); 165targetFrameworkElement.SetValue(targetFramework);
GivenThatWeWantToPublishASelfContainedApp.cs (1)
84doc.Root.Element("PropertyGroup").Element("TargetFramework").SetValue(TargetFramework);
Microsoft.NET.TestFramework (5)
ProjectConstruction\TestProject.cs (3)
260propertyGroup?.Element(ns + "TargetFrameworkVersion")?.SetValue(TargetFrameworkVersion); 288propertyGroup?.Element(ns + "OutputType")?.SetValue("Exe"); 292propertyGroup?.Element(ns + "OutputType")?.SetValue("WinExe");
TestAsset.cs (2)
132node.SetValue(node.Value.Replace($"$({variableName})", targetValue)); 191p.Root.Elements(ns + "PropertyGroup").Elements(ns + "TargetFramework").Single().SetValue(targetFramework);
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProject.cs (1)
82propertyGroup.Elements("TargetFramework").First().SetValue("targetframeworkAlias");
System.Private.Xml.Linq (3)
System\Xml\Linq\XAttribute.cs (1)
188/// <seealso cref="XElement.SetValue"/>
System\Xml\Linq\XElement.cs (2)
1202/// <seealso cref="XElement.SetValue"/> 1242/// <seealso cref="XElement.SetValue"/>