You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
New file should be created and added reference to project
Current Behavior
file created and "Access to the path ... is denied" error returned
Steps to Reproduce (for bugs)
forge new project --name BlogWeb --dir BlogDir --template suave forge new file --name server --project BlogDir --template fs
and output:
Forge should be run from solution/repository root. Please ensure you don't run it from folder containing other solutions
Do You want to continue? [Y/n]
Y
Unhandled error:
Access to the path 'C:\Users\d.tabakerov\FS\Blog\BlogDir' is denied.```
## Your Environment
Windows 10
The text was updated successfully, but these errors were encountered:
Essentially you need to pass relative path to file location, and relative path to fsproj. However project parameter is optional, if it's not provided we will try to find right project file. It should work well enough in most use cases.
Giving relative paths (relative to repository root, so directory where Forge should be run) is behavior we use for all other commands (add\remove file, project references etc) so wouldn't want to change it.
Also I've released fixed which will handle giving "wrong" project name (printing out warning + trying to find project file automatically), so this error shouldn't occur any more.
Expected Behavior
New file should be created and added reference to project
Current Behavior
file created and "Access to the path ... is denied" error returned
Steps to Reproduce (for bugs)
forge new project --name BlogWeb --dir BlogDir --template suave
forge new file --name server --project BlogDir --template fs
and output:
The text was updated successfully, but these errors were encountered: