mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
a few changes to .net6 prebuild, still needs more work..
This commit is contained in:
@@ -82,8 +82,8 @@ namespace Prebuild.Core
|
||||
private CommandLineCollection m_CommandLine;
|
||||
private Log m_Log;
|
||||
private CurrentDirectory m_CurrentWorkingDirectory;
|
||||
[Obsolete]
|
||||
private XmlSchemaCollection m_Schemas;
|
||||
//[Obsolete]
|
||||
//private XmlSchemaCollection m_Schemas;
|
||||
|
||||
private readonly Dictionary<string, ITarget> m_Targets = new Dictionary<string, ITarget>();
|
||||
private readonly Dictionary<string, NodeEntry> m_Nodes = new Dictionary<string, NodeEntry>();
|
||||
@@ -257,7 +257,7 @@ namespace Prebuild.Core
|
||||
// RemoveDirectoryMatches(dir,dirPattern);
|
||||
// }
|
||||
// }
|
||||
|
||||
/*
|
||||
private void LoadSchema()
|
||||
{
|
||||
Assembly assembly = GetType().Assembly;
|
||||
@@ -276,6 +276,7 @@ namespace Prebuild.Core
|
||||
m_Schemas = new XmlSchemaCollection();
|
||||
m_Schemas.Add(m_SchemaURI, schema);
|
||||
}
|
||||
*/
|
||||
|
||||
private void CacheVersion()
|
||||
{
|
||||
@@ -684,7 +685,7 @@ namespace Prebuild.Core
|
||||
}
|
||||
m_PauseAfterFinish = m_CommandLine.WasPassed("pause");
|
||||
|
||||
LoadSchema();
|
||||
//LoadSchema();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -753,8 +753,9 @@ namespace Prebuild.Core.Targets
|
||||
WriteProjectReferencesDotNet(solution, project, ps);
|
||||
|
||||
ps.WriteLine("</Project>");
|
||||
#endregion
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
private void WriteProjectReferencesDotNet(SolutionNode solution, ProjectNode project, StreamWriter ps)
|
||||
@@ -807,7 +808,28 @@ namespace Prebuild.Core.Targets
|
||||
ps.WriteLine(" <HintPath>{0}</HintPath>", Helper.MakeFilePath(refr.Path, refr.Name, "dll"));
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// this may be wrong
|
||||
// Use absolute path to assembly (for determining assembly type)
|
||||
string absolutePath = Path.Combine(project.FullPath, MakeRefPath(project));
|
||||
if (File.Exists(Helper.MakeFilePath(absolutePath, refr.Name, "exe")))
|
||||
{
|
||||
// Assembly is an executable (exe)
|
||||
ps.WriteLine(" <HintPath>{0}</HintPath>", Helper.MakeFilePath(absolutePath, refr.Name, "exe"));
|
||||
}
|
||||
else if (File.Exists(Helper.MakeFilePath(absolutePath, refr.Name, "dll")))
|
||||
{
|
||||
// Assembly is an library (dll)
|
||||
ps.WriteLine(" <HintPath>{0}</HintPath>", Helper.MakeFilePath(absolutePath, refr.Name, "dll"));
|
||||
}
|
||||
else
|
||||
{
|
||||
// string referencePath = Helper.MakeFilePath(refr.Path, refr.Name, "dll");
|
||||
// kernel.Log.Write(LogType.Warning, "Reference \"{0}\": The specified file doesn't exist.", referencePath);
|
||||
// ps.WriteLine(" <HintPath>{0}</HintPath>", Helper.MakeFilePath(absolutePath, refr.Name, "dll"));
|
||||
}
|
||||
}
|
||||
ps.WriteLine(" <Private>{0}</Private>", refr.LocalCopy);
|
||||
ps.WriteLine(" </Reference>");
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ using System.Resources;
|
||||
|
||||
// FxCop recommended attributes
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted=true)]
|
||||
[assembly: CLSCompliant(true)]
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user