3

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

3 Answers 3

6

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.

Sign up to request clarification or add additional context in comments.

3 Comments

@Zverit you can open the JSON file directly in VS.
Add new files, I can't see any .json format in Vs2012
@King_Fisher just opt for "All files" if it's not part of the file types.
3
  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

Comments

0
  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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.