using namespace System;
をコメントアウトすることで解決できた。
error C3699: ‘*’: cannot use this indirection on type ‘IServiceProvider’
https://stackoverflow.com/questions/51195379/large-amount-of-errors-regarding-iserviceprovider
コメントを残す