- Home /
error CS0246: The type or namespace name `MultipartStreamProvider'
[Version]
Unity : 2018.2.11f1 Personal
.NET : 4.x
OS:Mac(10.13.6)
[Question]
I want to know how to resolve below error of 'MultipartStreamProvider'
========================================================================
error CS0246: The type or namespace name `MultipartStreamProvider' could not be found. Are you missing an assembly reference? ========================================================================
In according with the document of microsoft, I imported namespace(System.Net.Http).
https://docs.microsoft.com/en-us/previous-versions/aspnet/hh995283(v=vs.118)
And, I added an mcs.rsp file that adds a reference for the System.Net.Http.dll, the System.Net.Http.formatting.dll
[mcs.rsp]
============================
-r:System.Net.Http.dll
-r:System.Net.Http.Formatting.dll
============================
But this error-message is outputted, when I use 'MultipartStreamProvider' as data type of method.
Please tell me how to resolve this error.