m.artamoshkin
m.artamoshkin

Reputation: 502

How make JSON-files part of project in VisualStudio 2012

How make JSON-files part of project in VisualStudio 2012? How access to the file? How to set them copy automatically?

Upvotes: 3

Views: 13674

Answers (3)

Jomar Edaño
Jomar Edaño

Reputation: 1

  1. Right-click on Project/Folder where you want to add the JSON file
  2. Hover on Add
  3. Click New Item

or use the Shortcut for New Item( Step 1-3 ) which is Ctrl+Shift+A

  1. Select JSON File
  2. Set the Filename then click Add button

Upvotes: 0

Softwarehuset
Softwarehuset

Reputation: 815

  1. place json file in solution folder in windows
  2. Press Show all files.
  3. Right click and press include in project.
  4. Right-click the file added to the project --> set the Copy to Output Dir option to true

Upvotes: 3

James
James

Reputation: 82096

How make JSON-files part of project in Visual Studio 2012

Right-click the project and select "Add files..." option (you can reference any inside a project).

How access to the file?

You would need to elaborate a bit more on this one...access when exactly? During runtime/design time?

How to set them copy automatically

Right-click the file once added to the project and set the Copy to Output Dir option to true.

Upvotes: 6

Related Questions