Buddhika Chathuranga
Buddhika Chathuranga

Reputation: 1468

XSD File Build Action

I have to embed XSD file into my .Net project as a resource. I am using Visual Studio 2019 Community edition. As I read, many resources says I can change my files build action as Resource from the file properties.

But in my IDE I can't see the any option regarding to that. Do I need to activate that option or what I have missed?

This is how its look like when I select file properties.

enter image description here

These are the all the options it provide and there is no any Advanced section in that which have to contain Build Action option as resources says. But that option is enabled in C# files.

enter image description here

How I can enable to select build option for XSD file in Visual Studio 2019.

Upvotes: 1

Views: 688

Answers (1)

Buddhika Chathuranga
Buddhika Chathuranga

Reputation: 1468

I found the answer. Previously I was adding file into solution. But I have to add file into project instead of solution to have that option.

Upvotes: 1

Related Questions