How to add an embedded resource to the project "Class Library (package)" in VS 2015 RC?

The candidate for Visual Studio 2015 release has a new project template called "Class Library (package)". This is in the Visual C # / Web category. The project type information panel says: "PREVIEW is a project template for creating a class library in the form of a NuGet package that can target any platform."

I am doing something similar that I was doing in a regular Library Library project and it includes an embedded resource. Typically, in the Properties dialog box, there is an option to specify a Build Action. Then you can select "Embedded Resource". This option does not appear in the Properties dialog box for the file in the Project Class Project.

Does anyone know how to add an embedded resource to the Class Library (Package) project in VS 2015 RC? Is it possible?

+6
source share
1 answer

There is a default magic /compiler/resources that you can use to delete files and they will be built in automatically. I have an example @ https://github.com/Blacklite/Features/tree/master/src/Blacklite.Framework.Features.Http (Note that from this post it has not been updated to beta4, but the functionality has not changed to mine knowledge)

Also, according to the scheme, you can specify a specific folder using the resource key in project.json . See: http://json.schemastore.org/project

+4
source

Source: https://habr.com/ru/post/987157/


All Articles