本文整理汇总了C#中Bam.Combine方法的典型用法代码示例。如果您正苦于以下问题:C# Bam.Combine方法的具体用法?C# Bam.Combine怎么用?C# Bam.Combine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bam
的用法示例。
在下文中一共展示了Bam.Combine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CSBuildProject
public CSBuildProject(
string moduleName,
string projectPathName,
Bam.Core.PackageIdentifier packageId,
Bam.Core.ProxyModulePath proxyPath)
{
this.ProjectName = moduleName;
this.PathName = projectPathName;
this.PackageDirectory = packageId.Location;
if (null != proxyPath)
{
this.PackageDirectory = proxyPath.Combine(packageId.Location);
}
var packagePath = this.PackageDirectory.GetLocations()[0].AbsolutePath;
var isPackageDirAbsolute = Bam.Core.RelativePathUtilities.IsPathAbsolute(packagePath);
var kind = isPackageDirAbsolute ? System.UriKind.Absolute : System.UriKind.Relative;
if (packagePath[packagePath.Length - 1] == System.IO.Path.DirectorySeparatorChar)
{
this.PackageUri = new System.Uri(packagePath, kind);
}
else
{
this.PackageUri = new System.Uri(packagePath + System.IO.Path.DirectorySeparatorChar, kind);
}
this.ProjectGuid = new DeterministicGuid(this.PathName).Guid;
}