New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a asset file to a project? #75

Closed
ryukinix opened this Issue Aug 7, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@ryukinix
Copy link

ryukinix commented Aug 7, 2017

I wants add a data/Template.json to my project data/data.fsproj. But when I try to execute from solution root:

forge add file -p data/data.fsproj -n data/Template.json

I got compile error because Template.json is added with tag Compile. There is some way to add a non-compiling file to a project? (I mean, like a Template.json, which obviously is not a file to compile).

Like this:

  <Content Include="Template.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </Content>

Instead

<Compile Include="Template.json/>
@Krzysztof-Cieslak

This comment has been minimized.

Copy link
Contributor

Krzysztof-Cieslak commented Aug 7, 2017

Using --build-action Content should set Content instead of Compile. Unfortunately, there is no way to add CopyToOutputDirectory with Forge at the moment

@ryukinix

This comment has been minimized.

Copy link

ryukinix commented Aug 8, 2017

Thanks for the fast answer, @Krzysztof-Cieslak!
Should I close this issue or this can be a feature to be implemented on future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment