Skip to content

vsx "GenerateBinaryOutputTask" task failed unexpectedly #553

Closed
nanoframework/nf-Visual-Studio-extension
#418
@TheTrigger

Description

@TheTrigger

Details about Problem

nanoFramework area: Visual Studio extension

VS version: 15.9.18 / 16.5.0-preview1

VS extension version: 1.3.0.1

Description

While building, binaries will be created, but the compiler gives an error for each project:

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4018	The "GenerateBinaryOutputTask" task failed unexpectedly.
System.IO.IOException: The process cannot access the file 'C:\Users\Fabio\source\repos\NFApp1\NFClassLibrary1\bin\Debug\NFClassLibrary1.dll' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at nanoFramework.Tools.GenerateBinaryOutputTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	NFClassLibrary1	C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\nanoFramework\v1.0\NFProjectSystem.MDP.targets	718	

Detailed repro steps to reproduce

  1. Create new exe project

  2. Add a library

  3. Build

Screenshot

image

image

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions