Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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();
        }