-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to package references and SDK project format #583
Migrate to package references and SDK project format #583
Conversation
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using FluentNHibernate.Mapping; | ||
using VocaDb.Model.Domain.Security; | ||
|
||
namespace VocaDb.Model.Mapping.Security { | ||
|
||
public class PermissionTokenMap : ClassMap<PermissionToken> { | ||
|
||
public PermissionTokenMap() { | ||
|
||
Id(m => m.Id); | ||
|
||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed PermissionTokenMap.cs because it seems that it is not used. In fact, if it is included in the project, a NHibernate.InvalidProxyTypeException will be thrown.
VocaDbWeb/Web.config
Outdated
@@ -41,6 +41,8 @@ | |||
<system.web> | |||
<compilation debug="true" targetFramework="4.8" batch="false"> | |||
<assemblies> | |||
<!-- https://github.com/dotnet/standard/issues/542 --> | |||
<add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you get the error? I was under the impression this should be unnecessary if AutoGenerateBindingRedirects and PackageReference are enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Reverted Web.config.
Thank you for your review! |
Thank you for the PR! |
#550
References:
https://www.michaeltaylorp3.net/migrating-to-sdk-project-format/
https://www.michaeltaylorp3.net/migrating-to-package-references/
dotnet/standard#542