public void LoadPropsFile() { string sdkPropFilePath = this.FileSys.FindFilePath(RepoRootDirPath, "AzSdk.reference.props"); Assert.NotNull(sdkPropFilePath); MsbuildProject sdkProp = new MsbuildProject(sdkPropFilePath); Assert.NotNull(sdkProp); sdkProp.Dispose(); }
public void GetPkgReferenceAndVersionInfo() { string sdkPropFilePath = this.FileSys.FindFilePath(RepoRootDirPath, "AzSdk.reference.props"); Assert.NotNull(sdkPropFilePath); MsbuildProject sdkProp = new MsbuildProject(sdkPropFilePath); Assert.NotNull(sdkProp); Dictionary <string, string> refVer = sdkProp.GetNugetPkgRefsAndVersionInfo(); Assert.NotNull(refVer); Assert.True(refVer.Count > 2); sdkProp.Dispose(); }
public void VerifyTargetFx() { string sdkPropFilePath = this.FileSys.FindFilePath(RepoRootDirPath, "AzSdk.reference.props"); Assert.NotNull(sdkPropFilePath); MsbuildProject sdkProp = new MsbuildProject(sdkPropFilePath); Assert.NotNull(sdkProp); string targetFx = sdkProp.GetPropertyValue("targetframework"); Assert.Empty(targetFx); targetFx = sdkProp.GetPropertyValue("SdkTargetFx"); Assert.NotNull(@"net452;net461;netstandard1.4;netstandard2.0"); sdkProp.Dispose(); }