コード例 #1
0
        public void AssInfoFrom_HappyCase()
        {
            ProjInfo result = SdkStyleCsProj.ProjInfoFrom("SdkStyleCsprojSample.xml");

            result.AssName.Should().Be("AssembliesByRepo.Logic.Name");
            result.AssType.Should().Be(ProjInfo.AssTypes.Dll);
            result.CsProjPath.Should().Be("SdkStyleCsprojSample.xml");
        }
コード例 #2
0
        public static ProjInfo GetAssInfoFrom(string csProjPath)
        {
            try { return(OldStyleCsProj.ProjInfoFrom(csProjPath)); }
            catch (Exception) { }

            try { return(SdkStyleCsProj.ProjInfoFrom(csProjPath)); }
            catch (Exception) { }

            throw new Exception("Uknown csproj file format or failed to parse csproj file.");
        }