src/Giles.Core/Configuration/MsBuildProject.cs
/// <summary>
/// Gets the output assembly file path relative to the
/// project files directory.  Uses the project default
/// plaftorm configuration.
/// </summary>
/// <returns></returns>
Gets the output assembly file path relative to the
project files directory.  Uses the project default
plaftorm configuration.
Gets the output assembly file path relative to the project files directory . Uses the project default plaftorm configuration .
public string GetAssemblyFilePath(string projectFilePath)
        {
            var platformConfig = GetDefaultPlatformConfig();
            var dir = GetPropertyValue(platformConfig, "OutputPath");
            var outtype = GetPropertyValue(platformConfig, "OutputType");
            var assemblyName = GetPropertyValue(platformConfig, "AssemblyName");
            switch(outtype.ToUpper())
            {
                case "LIBRARY":
                    assemblyName += ".dll";
                    break;
                case "EXE":
                    assemblyName += ".exe";
                    break;
            }
            var projectPath = Path.GetDirectoryName(projectFilePath);
            if (projectPath == null)
                throw new ArgumentException("Invalid project file path", "projectFilePath");
            return Path.Combine (projectPath, Path.Combine(dir, assemblyName));
        }
public string GetAssemblyFilePath ( string projectFilePath ) { var platformConfig = GetDefaultPlatformConfig ( ) ; var dir = GetPropertyValue ( platformConfig , " " ) ; var outtype = GetPropertyValue ( platformConfig , " " ) ; var assemblyName = GetPropertyValue ( platformConfig , " " ) ; switch ( outtype . ToUpper ( ) ) { case " " : assemblyName += " " ; break ; case " " : assemblyName += " " ; break ; } var projectPath = Path . GetDirectoryName ( projectFilePath ) ; if ( projectPath == null ) throw new ArgumentException ( " " , " " ) ; return Path . Combine ( projectPath , Path . Combine ( dir , assemblyName ) ) ; }
Gets the output assembly file path relative to the
project files directory.
Gets the output assembly file path relative to the project files directory .
// FIXME: DLL or EXE
None
projectFilePath
string