troubleshooting Question

Referencing a WSDL file generates large References.cs file in Visual Studio. Options for dealing with this large file?

Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America asked on
.NET ProgrammingOperating SystemsMicrosoft Visual StudioC#
9 Comments1 Solution84 ViewsLast Modified:
My References.cs file (generated by my recent addition of a third party WSDL reference) is very large.  664,293 lines.  Often when I open the file, the Visual Studio 2019 IDE crashes and re-opens.

I guess I am taxing my Windos 10 OS by opening the file?

In Task Manager, CPU % usage jumps when I scroll the file.  So does RAM usage.  I can clearly see that the file is impacting my system.

But my question is not IF the file is large, but what to do about it?

Can the file be compiled somehow, so I still have access to the web methods in the WSDL without having to actually OPEN the References.cs file?  I mean, I know I don't have to OPEN the References.cs file in order to reference the methods, but I can't just delete the file, right?  I want to compress it or compile it or do something so it reduces the impact on my system.
Chinmay Patel
Chief Technology Ninja
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros