Updated to .net5.0
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<Import Project="..\..\default.props" />
|
<Import Project="..\..\default.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<StartupObject>BNetServer.Server</StartupObject>
|
<StartupObject>BNetServer.Server</StartupObject>
|
||||||
<ApplicationIcon>Red.ico</ApplicationIcon>
|
<ApplicationIcon>Red.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace Framework.GameMath
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data. </param>
|
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data. </param>
|
||||||
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization.</param>
|
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization.</param>
|
||||||
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
|
//[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
|
||||||
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||||
{
|
{
|
||||||
info.AddValue("Max", _hi, typeof(Vector3));
|
info.AddValue("Max", _hi, typeof(Vector3));
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ namespace Framework.GameMath
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data. </param>
|
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data. </param>
|
||||||
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization.</param>
|
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization.</param>
|
||||||
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
|
//[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
|
||||||
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||||
{
|
{
|
||||||
info.AddValue("Normal", _normal, typeof(Vector3));
|
info.AddValue("Normal", _normal, typeof(Vector3));
|
||||||
|
|||||||
@@ -4482,11 +4482,10 @@ namespace Game.Entities
|
|||||||
|
|
||||||
public ObjectGuid GetLootWorldObjectGUID(ObjectGuid lootObjectGuid)
|
public ObjectGuid GetLootWorldObjectGUID(ObjectGuid lootObjectGuid)
|
||||||
{
|
{
|
||||||
var guid = m_AELootView.LookupByKey(lootObjectGuid);
|
if (!m_AELootView.ContainsKey(lootObjectGuid))
|
||||||
if (guid != null)
|
return ObjectGuid.Empty;
|
||||||
return guid;
|
|
||||||
|
|
||||||
return ObjectGuid.Empty;
|
return m_AELootView[lootObjectGuid];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveAELootedObject(ObjectGuid lootObjectGuid)
|
public void RemoveAELootedObject(ObjectGuid lootObjectGuid)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Import Project="..\..\default.props" />
|
<Import Project="..\..\default.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<ApplicationIcon>Blue.ico</ApplicationIcon>
|
<ApplicationIcon>Blue.ico</ApplicationIcon>
|
||||||
<StartupObject>WorldServer.Server</StartupObject>
|
<StartupObject>WorldServer.Server</StartupObject>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
|
|||||||
Reference in New Issue
Block a user