MVC project is unable to find the nuget package and throwing error.The missing file is packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props.The packages folder is created at solution level and hint path is used in csproj as below, Any suggestions? Moving the packages folder from solution level to the project level works, but i do not want to manually do it every time as this mvc project is dynamically created and on F5 I would like the build to be succeeded.
<ItemGroup>
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
<HintPath>packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
</Reference>
</ItemGroup>