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