Comments (4)
Thank you.
This is caused by the fact that your project targets .NET Framework 4.0, but the DLL in Packer is targeted at .NET Standard 2.0.
If you can change the target framework of your project to .NET Framework 4.7.2, that will resolve the issue.
If not, you would need to recompile the Packer binary with .NET 4.0 as the target framework. I think it's doable, but I didn't try. If you make a pull request on it, I'll merge it in and republish.
from postsharp.community.packer.
What you're doing should work.
What happens if you add [assembly: PostSharp.Community.Packer.Packer]
to your code? Does it complain that the type doesn't exist? If yes, could you attach your project or a minimal example? Merely installing the package in a project and adding this attribute works for me.
from postsharp.community.packer.
Thanks for your quick response.
Yes, I just added the [assembly: PostSharp.Community.Packer.Packer]
and got the error above.
I attach the csproj file (as txt), anything more?
1.txt
from postsharp.community.packer.
from postsharp.community.packer.
Related Issues (9)
- Code needs to be cleaned up
- License key required? HOT 1
- System.InvalidCastException type Sytem.Object[] to System.String[] HOT 3
- System.TypeInitializationException during runtime when embedding Unmanaged Assemblies HOT 1
- How do I implement this in my code? [closed] HOT 1
- Compiled program is not actually packed (.NET Framework 4.6.1, 4.7.2, 4.8) HOT 8
- Suppress logging to PostSharp.Patterns.Diagnostics HOT 1
- PostSharp version being used is out-of-date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postsharp.community.packer.